Interface PendingMessageSubscriptionState
- All Known Implementing Classes:
DbMessageSubscriptionState
public interface PendingMessageSubscriptionState
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Should be called when a pending subscription is sent out.default void
onSent
(MessageSubscriptionRecord subscription, long timestampMs) void
visitPending
(long deadline, MessageSubscriptionState.MessageSubscriptionVisitor visitor) Visits all pending message subscriptions where a command hasn't been sent out since a given deadline.
-
Method Details
-
visitPending
Visits all pending message subscriptions where a command hasn't been sent out since a given deadline. The visitor is called for each subscription, from the oldest to the newest. -
onSent
Should be called when a pending subscription is sent out. This is used to keep track of the last time a command was sent out for a subscription. Freshly sent-out subscriptions are not visited byvisitPending(long, MessageSubscriptionVisitor)
. -
onSent
-