@Entity public class SystemEventImpl extends Object implements SystemEvent
Modifier and Type | Field and Description |
---|---|
protected Boolean |
canRetry |
protected Date |
created |
protected Boolean |
enabled |
protected Map<String,SystemEventDetail> |
eventDetails |
protected Long |
id |
protected boolean |
passedConsumption |
protected Integer |
priority |
protected Long |
processMarker |
protected Integer |
retryCount |
protected String |
scopeType |
protected Boolean |
serialExecution |
protected String |
type |
protected Boolean |
universal |
protected Integer |
version |
protected String |
workerType |
Constructor and Description |
---|
SystemEventImpl() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getCanResume()
This differs from
SystemEvent.getCanRetry() in that this setting determines whether or not the event is capable is resuming
operation after being interrupted as the result of catastrophic server failure, or other database connection failure. |
Boolean |
getCanRetry() |
Date |
getCreated()
When the event was created.
|
Boolean |
getEnabled()
Whether the event is enabled.
|
Map<String,SystemEventDetail> |
getEventDetails()
Detailed information needed to consume the event appropriately.
|
Long |
getId() |
Integer |
getPriority()
The priority of an event.
|
Long |
getProcessMarker()
An arbitrary marker field used to group events together.
|
Integer |
getRetryCount()
Not currently supported.
|
EventScopeType |
getScopeType()
Describes how an event should be consumed.
|
Boolean |
getSerialExecution()
Whether this events should be the only event of it's type allowed to execute at once.
|
String |
getType()
Arbitrary string that identifies the event.
|
Boolean |
getUniversal()
Events marked as universal are considered to always be the same whenever they are fired.
|
EventWorkerType |
getWorkerType()
The type of node that is qualified to consume this event.
|
boolean |
isPassedConsumption()
Whether the event was successfully consumed
|
void |
setCanRetry(Boolean canRetry) |
void |
setCreated(Date created) |
void |
setEnabled(Boolean enabled) |
void |
setEventDetails(Map<String,SystemEventDetail> eventDetails) |
void |
setId(Long id) |
void |
setPassedConsumption(boolean passedConsumption) |
void |
setPriority(Integer priority) |
void |
setProcessMarker(Long processMarker) |
void |
setRetryCount(Integer retryCount)
Not currently supported.
|
void |
setScopeType(EventScopeType scopeType) |
void |
setSerialExecution(Boolean serialExecution) |
void |
setType(String type) |
void |
setUniversal(Boolean universal) |
void |
setWorkerType(EventWorkerType workerType) |
String |
toString() |
protected Long id
protected Map<String,SystemEventDetail> eventDetails
protected String type
protected Date created
protected String scopeType
protected String workerType
protected Long processMarker
protected Boolean enabled
protected Boolean universal
protected Boolean serialExecution
protected Boolean canRetry
protected Integer retryCount
protected Integer version
protected Integer priority
protected boolean passedConsumption
public Date getCreated()
SystemEvent
getCreated
in interface SystemEvent
public void setCreated(Date created)
setCreated
in interface SystemEvent
public Map<String,SystemEventDetail> getEventDetails()
SystemEvent
ScheduledJob
getEventDetails
in interface SystemEvent
public void setEventDetails(Map<String,SystemEventDetail> eventDetails)
setEventDetails
in interface SystemEvent
public Long getId()
getId
in interface SystemEvent
public void setId(Long id)
setId
in interface SystemEvent
public String getType()
SystemEvent
SystemEventConsumer.getEventType()
getType
in interface SystemEvent
public void setType(String type)
setType
in interface SystemEvent
public EventScopeType getScopeType()
SystemEvent
SystemEvent.getWorkerType()
nodes in the cluster.getScopeType
in interface SystemEvent
public void setScopeType(EventScopeType scopeType)
setScopeType
in interface SystemEvent
public EventWorkerType getWorkerType()
SystemEvent
getWorkerType
in interface SystemEvent
public void setWorkerType(EventWorkerType workerType)
setWorkerType
in interface SystemEvent
public Boolean getEnabled()
SystemEvent
getEnabled
in interface SystemEvent
public void setEnabled(Boolean enabled)
setEnabled
in interface SystemEvent
public Long getProcessMarker()
SystemEvent
getProcessMarker
in interface SystemEvent
public void setProcessMarker(Long processMarker)
setProcessMarker
in interface SystemEvent
public Boolean getUniversal()
SystemEvent
getUniversal
in interface SystemEvent
public void setUniversal(Boolean universal)
setUniversal
in interface SystemEvent
public Boolean getSerialExecution()
SystemEvent
getSerialExecution
in interface SystemEvent
SerialEventLock
public void setSerialExecution(Boolean serialExecution)
setSerialExecution
in interface SystemEvent
public Integer getRetryCount()
SystemEvent
getRetryCount
in interface SystemEvent
public void setRetryCount(Integer retryCount)
SystemEvent
setRetryCount
in interface SystemEvent
retryCount
- The number of times to try to consume the event before giving uppublic Boolean getCanRetry()
getCanRetry
in interface SystemEvent
public void setCanRetry(Boolean canRetry)
setCanRetry
in interface SystemEvent
public boolean isPassedConsumption()
SystemEvent
isPassedConsumption
in interface SystemEvent
public void setPassedConsumption(boolean passedConsumption)
setPassedConsumption
in interface SystemEvent
public Integer getPriority()
SystemEvent
getPriority
in interface SystemEvent
public void setPriority(Integer priority)
setPriority
in interface SystemEvent
public Boolean getCanResume()
SystemEvent
SystemEvent.getCanRetry()
in that this setting determines whether or not the event is capable is resuming
operation after being interrupted as the result of catastrophic server failure, or other database connection failure.
See ProcessManager
for more information.getCanResume
in interface SystemEvent
Copyright © 2019. All rights reserved.