Class SubscriptionListener


  • public abstract class SubscriptionListener
    extends java.lang.Object
    Listener used to handle catch-up subscription notifications raised throughout its lifecycle.
    • Constructor Detail

      • SubscriptionListener

        public SubscriptionListener()
    • Method Detail

      • onEvent

        public void onEvent​(Subscription subscription,
                            ResolvedEvent event)
        Called when EventStoreDB sends an event to the subscription.
        Parameters:
        subscription - handle to the subscription.
        event - a resolved event.
      • onError

        public void onError​(Subscription subscription,
                            java.lang.Throwable throwable)
        Called when an exception was raised when processing an event.
        Parameters:
        subscription - handle to the subscription.
        throwable - an exception.
      • onCancelled

        public void onCancelled​(Subscription subscription)
        Called when the subscription is cancelled or dropped.
        Parameters:
        subscription - handle to the subscription.
      • onConfirmation

        public void onConfirmation​(Subscription subscription)