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 uponAmLink
events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AmLinkListener.ResilientAmLinkListener
Represent a listener capable of handling reopening signals.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onDisconnection()
The handler to call in case of a disconnection.void
onNotification(Notification notification)
The notification handler, will receive all notifications sent by AM.
-
-
-
Method Detail
-
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
-
-