Class DbMessageSubscriptionState
java.lang.Object
io.camunda.zeebe.engine.state.message.DbMessageSubscriptionState
- All Implemented Interfaces:
MessageSubscriptionState
,MutableMessageSubscriptionState
,MutablePendingMessageSubscriptionState
,StreamProcessorLifecycleAware
public final class DbMessageSubscriptionState
extends Object
implements MutableMessageSubscriptionState, MutablePendingMessageSubscriptionState, StreamProcessorLifecycleAware
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.state.immutable.MessageSubscriptionState
MessageSubscriptionState.MessageSubscriptionVisitor
-
Constructor Summary
ConstructorDescriptionDbMessageSubscriptionState
(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext) -
Method Summary
Modifier and TypeMethodDescriptionboolean
existSubscriptionForElementInstance
(long elementInstanceKey, org.agrona.DirectBuffer messageName) get
(long elementInstanceKey, org.agrona.DirectBuffer messageName) void
void
put
(long key, MessageSubscriptionRecord record) boolean
remove
(long elementInstanceKey, org.agrona.DirectBuffer messageName) void
remove
(MessageSubscription subscription) void
updateCommandSentTime
(MessageSubscriptionRecord record, long sentTime) void
updateToCorrelatedState
(MessageSubscription subscription) void
void
visitSubscriptionBefore
(long deadline, MessageSubscriptionState.MessageSubscriptionVisitor visitor) void
visitSubscriptions
(org.agrona.DirectBuffer messageName, org.agrona.DirectBuffer correlationKey, MessageSubscriptionState.MessageSubscriptionVisitor visitor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.camunda.zeebe.stream.api.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onResumed
-
Constructor Details
-
DbMessageSubscriptionState
public DbMessageSubscriptionState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
-
Method Details
-
onRecovered
- Specified by:
onRecovered
in interfaceStreamProcessorLifecycleAware
-
get
- Specified by:
get
in interfaceMessageSubscriptionState
-
visitSubscriptions
public void visitSubscriptions(org.agrona.DirectBuffer messageName, org.agrona.DirectBuffer correlationKey, MessageSubscriptionState.MessageSubscriptionVisitor visitor) - Specified by:
visitSubscriptions
in interfaceMessageSubscriptionState
-
existSubscriptionForElementInstance
public boolean existSubscriptionForElementInstance(long elementInstanceKey, org.agrona.DirectBuffer messageName) - Specified by:
existSubscriptionForElementInstance
in interfaceMessageSubscriptionState
-
put
- Specified by:
put
in interfaceMutableMessageSubscriptionState
-
updateToCorrelatingState
- Specified by:
updateToCorrelatingState
in interfaceMutableMessageSubscriptionState
-
remove
public boolean remove(long elementInstanceKey, org.agrona.DirectBuffer messageName) - Specified by:
remove
in interfaceMutableMessageSubscriptionState
-
remove
- Specified by:
remove
in interfaceMutableMessageSubscriptionState
-
visitSubscriptionBefore
public void visitSubscriptionBefore(long deadline, MessageSubscriptionState.MessageSubscriptionVisitor visitor) - Specified by:
visitSubscriptionBefore
in interfaceMutablePendingMessageSubscriptionState
-
updateCommandSentTime
- Specified by:
updateCommandSentTime
in interfaceMutablePendingMessageSubscriptionState
-