Interface PendingMessageSubscriptionState

All Known Implementing Classes:
DbMessageSubscriptionState

public interface PendingMessageSubscriptionState
  • Method Details

    • visitPending

      void visitPending(long deadline, MessageSubscriptionState.MessageSubscriptionVisitor visitor)
      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

      void onSent(long elementInstance, String messageName, String tenantId, long timestampMs)
      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 by visitPending(long, MessageSubscriptionVisitor).
    • onSent

      default void onSent(MessageSubscriptionRecord subscription, long timestampMs)