Class DbMessageSubscriptionState
java.lang.Object
io.camunda.zeebe.engine.state.message.DbMessageSubscriptionState
- All Implemented Interfaces:
StreamProcessorLifecycleAware
,MessageSubscriptionState
,MutableMessageSubscriptionState
,MutablePendingMessageSubscriptionState
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
ConstructorsConstructorDescriptionDbMessageSubscriptionState
(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
onRecovered
(ReadonlyProcessingContext context) Callback after reprocessing was successful and before regular processing beginsvoid
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.engine.processing.streamprocessor.StreamProcessorLifecycleAware
onClose, onFailed, onPaused, onResumed
-
Constructor Details
-
DbMessageSubscriptionState
public DbMessageSubscriptionState(ZeebeDb<ZbColumnFamilies> zeebeDb, TransactionContext transactionContext)
-
-
Method Details
-
onRecovered
Description copied from interface:StreamProcessorLifecycleAware
Callback after reprocessing was successful and before regular processing begins- 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
-