Package com.eventstore.dbclient
Class SubscriptionListener
- java.lang.Object
-
- com.eventstore.dbclient.SubscriptionListener
-
public abstract class SubscriptionListener extends java.lang.ObjectListener used to handle catch-up subscription notifications raised throughout its lifecycle.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCancelled(Subscription subscription)Called when the subscription is cancelled or dropped.voidonConfirmation(Subscription subscription)voidonError(Subscription subscription, java.lang.Throwable throwable)Called when an exception was raised when processing an event.voidonEvent(Subscription subscription, ResolvedEvent event)Called when EventStoreDB sends an event to the subscription.
-
-
-
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)
-
-