Class DbJobState
java.lang.Object
io.camunda.zeebe.engine.state.instance.DbJobState
- All Implemented Interfaces:
JobState,MutableJobState
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.immutable.JobState
JobState.State -
Constructor Summary
ConstructorsConstructorDescriptionDbJobState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidbooleanexists(long jobKey) voidlongfindBackedOffJobs(long timestamp, BiPredicate<Long, JobRecord> callback) voidforEachActivatableJobs(org.agrona.DirectBuffer type, List<String> tenantIds, BiFunction<Long, JobRecord, Boolean> callback) voidforEachTimedOutEntry(long upperBound, BiPredicate<Long, JobRecord> callback) getJob(long key) getState(long key) booleanisInState(long key, JobState.State state) booleanjobDeadlineExists(long jobKey, long deadline) voidvoidrecurAfterBackoff(long key, JobRecord record) voidvoidvoidthrowError(long key, JobRecord updatedValue) voidvoidupdateJobDeadline(long jobKey, long newDeadline) updateJobRetries(long jobKey, int retries) void
-
Constructor Details
-
DbJobState
-
-
Method Details
-
create
- Specified by:
createin interfaceMutableJobState
-
activate
- Specified by:
activatein interfaceMutableJobState
-
recurAfterBackoff
- Specified by:
recurAfterBackoffin interfaceMutableJobState
-
timeout
- Specified by:
timeoutin interfaceMutableJobState
-
complete
- Specified by:
completein interfaceMutableJobState
-
cancel
- Specified by:
cancelin interfaceMutableJobState
-
disable
- Specified by:
disablein interfaceMutableJobState
-
throwError
- Specified by:
throwErrorin interfaceMutableJobState
-
delete
- Specified by:
deletein interfaceMutableJobState
-
fail
- Specified by:
failin interfaceMutableJobState
-
yield
- Specified by:
yieldin interfaceMutableJobState
-
resolve
- Specified by:
resolvein interfaceMutableJobState
-
updateJobRetries
- Specified by:
updateJobRetriesin interfaceMutableJobState
-
cleanupTimeoutsWithoutJobs
public void cleanupTimeoutsWithoutJobs()- Specified by:
cleanupTimeoutsWithoutJobsin interfaceMutableJobState
-
cleanupBackoffsWithoutJobs
public void cleanupBackoffsWithoutJobs()- Specified by:
cleanupBackoffsWithoutJobsin interfaceMutableJobState
-
updateJobDeadline
public void updateJobDeadline(long jobKey, long newDeadline) - Specified by:
updateJobDeadlinein interfaceMutableJobState
-
migrate
- Specified by:
migratein interfaceMutableJobState
-
restoreBackoff
public void restoreBackoff()- Specified by:
restoreBackoffin interfaceMutableJobState
-
forEachTimedOutEntry
- Specified by:
forEachTimedOutEntryin interfaceJobState
-
exists
public boolean exists(long jobKey) -
getState
-
isInState
-
forEachActivatableJobs
public void forEachActivatableJobs(org.agrona.DirectBuffer type, List<String> tenantIds, BiFunction<Long, JobRecord, Boolean> callback) - Specified by:
forEachActivatableJobsin interfaceJobState
-
getJob
-
getJob
-
jobDeadlineExists
public boolean jobDeadlineExists(long jobKey, long deadline) - Specified by:
jobDeadlineExistsin interfaceJobState
-
findBackedOffJobs
- Specified by:
findBackedOffJobsin interfaceJobState
-