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
- Author:
- Tom Baeyens
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected Stringprotected longstatic final SimpleDateFormatstatic final StringFields inherited from class org.camunda.bpm.engine.impl.persistence.entity.JobEntity
activityId, batchId, createTime, DEFAULT_RETRIES, deploymentId, exceptionByteArray, exceptionByteArrayId, exceptionMessage, execution, executionId, failedActivityId, jobDefinition, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, lastFailureLogId, persistedDependentEntities, priority, processDefinitionId, processDefinitionKey, retries, sequenceCounter, suspensionState, tenantIdFields inherited from class org.camunda.bpm.engine.impl.persistence.entity.AcquirableJobEntity
DEFAULT_EXCLUSIVE, duedate, id, isExclusive, lockExpirationTime, lockOwner, processInstanceId, revision, rootProcessInstanceId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringadjustRepeatBasedOnNewExpression(String expressionValue) voidcreateNewTimerJob(Date dueDate) protected RepeatingFailedJobListenercreateRepeatingFailedJobListener(CommandExecutor commandExecutor) Returns a representation of the object, as would be stored in the database.longgetType()protected booleanprotected booleanisReevaluateTimeCycleWhenDue(CommandContext commandContext) protected booleanisSameRepeatCycle(String expressionValue) protected StringparseExpression(CommandContext commandContext) protected voidpreExecute(CommandContext commandContext) static StringreplaceRepeatCycleAndDate(String repeatExpression) voidvoidsetRepeatOffset(long repeatOffset) 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, getBatchId, 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, init, insert, isInInconsistentLockState, isSuspended, postExecute, postLoad, removeFailedJobIncident, resetLock, setActivityId, setBatchId, setCreateTime, setDeploymentId, setExceptionMessage, setExceptionStacktrace, setExecution, setExecutionId, setFailedActivityId, setJobDefinition, setJobDefinitionId, setJobHandlerConfiguration, setJobHandlerConfigurationRaw, setJobHandlerType, setLastFailureLogId, setPriority, setProcessDefinitionId, setProcessDefinitionKey, setRetries, setRetriesFromPersistence, setSequenceCounter, setSuspensionState, setTenantId, unlockMethods inherited from class org.camunda.bpm.engine.impl.persistence.entity.AcquirableJobEntity
getDuedate, getId, getLockExpirationTime, getLockOwner, getProcessInstanceId, getRevision, getRevisionNext, getRootProcessInstanceId, hashCode, isExclusive, setDuedate, setExclusive, setId, setLockExpirationTime, setLockOwner, setProcessInstanceId, setRevision, setRootProcessInstanceIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.db.HasDbRevision
getRevision, getRevisionNext, setRevisionMethods inherited from interface org.camunda.bpm.engine.runtime.Job
getDuedate, getId, getProcessInstanceId, getRootProcessInstanceId
-
Field Details
-
CYCLE_EXPRESSION_START_TYPE_1
-
CYCLE_EXPRESSION_START_TYPE_2
-
SIMPLE_DATE_FORMAT
-
TYPE
- See Also:
-
repeat
-
repeatOffset
protected long repeatOffset
-
-
Constructor Details
-
TimerEntity
public TimerEntity() -
TimerEntity
-
TimerEntity
-
-
Method Details
-
preExecute
- Overrides:
preExecutein classJobEntity
-
parseExpression
-
isReevaluateTimeCycleWhenDue
-
isCycleExpression
protected boolean isCycleExpression() -
adjustRepeatBasedOnNewExpression
-
isSameRepeatCycle
-
replaceRepeatCycleAndDate
-
createRepeatingFailedJobListener
protected RepeatingFailedJobListener createRepeatingFailedJobListener(CommandExecutor commandExecutor) -
createNewTimerJob
-
calculateNewDueDate
-
getRepeat
-
setRepeat
-
getRepeatOffset
public long getRepeatOffset() -
setRepeatOffset
public void setRepeatOffset(long repeatOffset) -
getType
-
getPersistentState
Description copied from interface:DbEntityReturns 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:
getPersistentStatein interfaceDbEntity- Overrides:
getPersistentStatein classJobEntity
-
toString
-