Class TimerEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.AcquirableJobEntity
-
- org.camunda.bpm.engine.impl.persistence.entity.JobEntity
-
- org.camunda.bpm.engine.impl.persistence.entity.TimerEntity
-
- All Implemented Interfaces:
Serializable
,DbEntity
,DbEntityLifecycleAware
,HasDbReferences
,HasDbRevision
,Job
public class TimerEntity extends JobEntity
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
repeat
protected long
repeatOffset
static String
TYPE
-
Fields inherited from class org.camunda.bpm.engine.impl.persistence.entity.JobEntity
activityId, createTime, DEFAULT_RETRIES, deploymentId, exceptionByteArray, exceptionByteArrayId, exceptionMessage, execution, executionId, failedActivityId, jobDefinition, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, lastFailureLogId, persistedDependentEntities, priority, processDefinitionId, processDefinitionKey, retries, sequenceCounter, suspensionState, tenantId
-
Fields inherited from class org.camunda.bpm.engine.impl.persistence.entity.AcquirableJobEntity
DEFAULT_EXCLUSIVE, duedate, id, isExclusive, lockExpirationTime, lockOwner, processInstanceId, revision
-
-
Constructor Summary
Constructors Modifier Constructor Description TimerEntity()
TimerEntity(TimerDeclarationImpl timerDeclaration)
protected
TimerEntity(TimerEntity te)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
calculateRepeat()
void
createNewTimerJob(Date dueDate)
protected RepeatingFailedJobListener
createRepeatingFailedJobListener(CommandExecutor commandExecutor)
Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.String
getRepeat()
long
getRepeatOffset()
String
getType()
protected void
preExecute(CommandContext commandContext)
void
setRepeat(String repeat)
void
setRepeatOffset(long repeatOffset)
String
toString()
-
Methods inherited from class org.camunda.bpm.engine.impl.persistence.entity.JobEntity
clearFailedJobException, createFailedJobIncident, createIncidentContext, delete, delete, ensureActivityIdInitialized, ensureExceptionByteArrayInitialized, ensureExecutionInitialized, ensureJobDefinitionInitialized, equals, execute, getActivityId, getCreateTime, getDependentEntities, getDeploymentId, getExceptionByteArray, getExceptionByteArrayId, getExceptionMessage, getExceptionStacktrace, getExecution, getExecutionId, getFailedActivityId, getJobDefinition, getJobDefinitionId, getJobHandler, getJobHandlerConfiguration, getJobHandlerConfigurationRaw, getJobHandlerType, getLastFailureLogId, getPriority, getProcessDefinitionId, getProcessDefinitionKey, getReferencedEntitiesIdAndClass, getReferencedEntityIds, getRetries, getSequenceCounter, getSuspensionState, getTenantId, incrementSequenceCounter, init, insert, isInInconsistentLockState, isSuspended, postExecute, postLoad, removeFailedJobIncident, resetLock, setActivityId, setCreateTime, setDeploymentId, setExceptionMessage, setExceptionStacktrace, setExecution, setExecutionId, setFailedActivityId, setJobDefinition, setJobDefinitionId, setJobHandlerConfiguration, setJobHandlerConfigurationRaw, setJobHandlerType, setLastFailureLogId, setPriority, setProcessDefinitionId, setProcessDefinitionKey, setRetries, setRetriesFromPersistence, setSequenceCounter, setSuspensionState, setTenantId, unlock
-
Methods inherited from class org.camunda.bpm.engine.impl.persistence.entity.AcquirableJobEntity
getDuedate, getId, getLockExpirationTime, getLockOwner, getProcessInstanceId, getRevision, getRevisionNext, hashCode, isExclusive, setDuedate, setExclusive, setId, setLockExpirationTime, setLockOwner, setProcessInstanceId, setRevision
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface org.camunda.bpm.engine.runtime.Job
getDuedate, getId, getProcessInstanceId
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
repeat
protected String repeat
-
repeatOffset
protected long repeatOffset
-
-
Constructor Detail
-
TimerEntity
public TimerEntity()
-
TimerEntity
public TimerEntity(TimerDeclarationImpl timerDeclaration)
-
TimerEntity
protected TimerEntity(TimerEntity te)
-
-
Method Detail
-
preExecute
protected void preExecute(CommandContext commandContext)
- Overrides:
preExecute
in classJobEntity
-
createRepeatingFailedJobListener
protected RepeatingFailedJobListener createRepeatingFailedJobListener(CommandExecutor commandExecutor)
-
createNewTimerJob
public void createNewTimerJob(Date dueDate)
-
calculateRepeat
public Date calculateRepeat()
-
getRepeat
public String getRepeat()
-
setRepeat
public void setRepeat(String repeat)
-
getRepeatOffset
public long getRepeatOffset()
-
setRepeatOffset
public void setRepeatOffset(long repeatOffset)
-
getPersistentState
public Object getPersistentState()
Description copied from interface:DbEntity
Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentState
in interfaceDbEntity
- Overrides:
getPersistentState
in classJobEntity
-
-