Class DbProcessMessageSubscriptionState
java.lang.Object
io.camunda.zeebe.engine.state.message.DbProcessMessageSubscriptionState
- All Implemented Interfaces:
ProcessMessageSubscriptionState,MutablePendingProcessMessageSubscriptionState,MutableProcessMessageSubscriptionState,StreamProcessorLifecycleAware
public final class DbProcessMessageSubscriptionState
extends Object
implements MutableProcessMessageSubscriptionState, MutablePendingProcessMessageSubscriptionState, StreamProcessorLifecycleAware
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.immutable.ProcessMessageSubscriptionState
ProcessMessageSubscriptionState.ProcessMessageSubscriptionVisitor -
Constructor Summary
ConstructorsConstructorDescriptionDbProcessMessageSubscriptionState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistSubscriptionForElementInstance(long elementInstanceKey, org.agrona.DirectBuffer messageName) getSubscription(long elementInstanceKey, org.agrona.DirectBuffer messageName) voidvoidput(long key, ProcessMessageSubscriptionRecord record) booleanremove(long elementInstanceKey, org.agrona.DirectBuffer messageName) voidupdateSentTime(ProcessMessageSubscriptionRecord record, long commandSentTime) voidvoidvoidvoidvisitElementSubscriptions(long elementInstanceKey, ProcessMessageSubscriptionState.ProcessMessageSubscriptionVisitor visitor) voidvisitSubscriptionBefore(long deadline, ProcessMessageSubscriptionState.ProcessMessageSubscriptionVisitor visitor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.stream.api.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onResumed
-
Constructor Details
-
DbProcessMessageSubscriptionState
public DbProcessMessageSubscriptionState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
-
Method Details
-
onRecovered
- Specified by:
onRecoveredin interfaceStreamProcessorLifecycleAware
-
put
- Specified by:
putin interfaceMutableProcessMessageSubscriptionState
-
updateToOpeningState
- Specified by:
updateToOpeningStatein interfaceMutableProcessMessageSubscriptionState
-
updateToOpenedState
- Specified by:
updateToOpenedStatein interfaceMutableProcessMessageSubscriptionState
-
updateToClosingState
- Specified by:
updateToClosingStatein interfaceMutableProcessMessageSubscriptionState
-
remove
public boolean remove(long elementInstanceKey, org.agrona.DirectBuffer messageName) - Specified by:
removein interfaceMutableProcessMessageSubscriptionState
-
getSubscription
public ProcessMessageSubscription getSubscription(long elementInstanceKey, org.agrona.DirectBuffer messageName) - Specified by:
getSubscriptionin interfaceProcessMessageSubscriptionState
-
visitElementSubscriptions
public void visitElementSubscriptions(long elementInstanceKey, ProcessMessageSubscriptionState.ProcessMessageSubscriptionVisitor visitor) - Specified by:
visitElementSubscriptionsin interfaceProcessMessageSubscriptionState
-
existSubscriptionForElementInstance
public boolean existSubscriptionForElementInstance(long elementInstanceKey, org.agrona.DirectBuffer messageName) - Specified by:
existSubscriptionForElementInstancein interfaceProcessMessageSubscriptionState
-
visitSubscriptionBefore
public void visitSubscriptionBefore(long deadline, ProcessMessageSubscriptionState.ProcessMessageSubscriptionVisitor visitor) - Specified by:
visitSubscriptionBeforein interfaceMutablePendingProcessMessageSubscriptionState
-
updateSentTime
- Specified by:
updateSentTimein interfaceMutablePendingProcessMessageSubscriptionState
-