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, int partitionId) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidbooleanexists(long jobKey) voidlongfindBackedOffJobs(long timestamp, BiPredicate<Long, JobRecord> callback) voidforEachActivatableJobs(org.agrona.DirectBuffer type, BiFunction<Long, JobRecord, Boolean> callback) voidforEachTimedOutEntry(long upperBound, BiFunction<Long, JobRecord, Boolean> callback) getJob(long key) getState(long key) booleanisInState(long key, JobState.State state) voidrecurAfterBackoff(long key, JobRecord record) voidvoidsetJobsAvailableCallback(Consumer<String> onJobsAvailableCallback) voidthrowError(long key, JobRecord updatedValue) voidupdateJobRetries(long jobKey, int retries)
-
Constructor Details
-
DbJobState
public DbJobState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext, int partitionId)
-
-
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
-
resolve
- Specified by:
resolvein interfaceMutableJobState
-
updateJobRetries
- Specified by:
updateJobRetriesin interfaceMutableJobState
-
forEachTimedOutEntry
- Specified by:
forEachTimedOutEntryin interfaceJobState
-
exists
public boolean exists(long jobKey) -
getState
-
isInState
-
forEachActivatableJobs
public void forEachActivatableJobs(org.agrona.DirectBuffer type, BiFunction<Long, JobRecord, Boolean> callback) - Specified by:
forEachActivatableJobsin interfaceJobState
-
getJob
-
setJobsAvailableCallback
- Specified by:
setJobsAvailableCallbackin interfaceJobState
-
findBackedOffJobs
- Specified by:
findBackedOffJobsin interfaceJobState
-