Interface AmLinkListener

All Known Subinterfaces:
AmLinkListener.ResilientAmLinkListener
All Known Implementing Classes:
AutoReconnectAmLink, GracefulShutdownAmLink, InitializedAmLink, PeriodicallyRenewedAmLink, RetryableAmLink, StableAmLink, TopicMultiplexerAmLink

public interface AmLinkListener
Represent a listener willing to be notified upon AmLink events.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represent a listener capable of handling reopening signals.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The handler to call in case of a disconnection.
    void
    The notification handler, will receive all notifications sent by AM.
  • Method Details

    • onDisconnection

      void onDisconnection()
      The handler to call in case of a disconnection. When this handler is called, the instance is considered as closed. Can only be called after the start promise successful completion, and before every ongoing (un)subscribe promise failure.
    • onNotification

      void onNotification(Notification notification)
      The notification handler, will receive all notifications sent by AM. Duplicate notifications may occur.
      Parameters:
      notification - the received notification