Interface SubscriptionListener<T>

Type Parameters:
T - Object type for deserialization.

public interface SubscriptionListener<T>
Callback interface to receive events from a streaming subscription of events.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Callback status response for acknowledging a message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Processes an exception during streaming subscription.
    reactor.core.publisher.Mono<SubscriptionListener.Status>
    Processes an event from streaming subscription.
  • Method Details

    • onEvent

      reactor.core.publisher.Mono<SubscriptionListener.Status> onEvent(CloudEvent<T> event)
      Processes an event from streaming subscription.
      Parameters:
      event - Event received.
      Returns:
      Acknowledgement status.
    • onError

      void onError(RuntimeException exception)
      Processes an exception during streaming subscription.
      Parameters:
      exception - Exception to be processed.