Interface AmLinkListener
-
- All Known Subinterfaces:
AmLinkListener.ResilientAmLinkListener
- All Known Implementing Classes:
AutoReconnectAmLink,GracefulShutdownAmLink,InitializedAmLink,PeriodicallyRenewedAmLink,RetryableAmLink,StableAmLink,TopicMultiplexerAmLink
public interface AmLinkListenerRepresent a listener willing to be notified uponAmLinkevents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAmLinkListener.ResilientAmLinkListenerRepresent a listener capable of handling reopening signals.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonDisconnection()The handler to call in case of a disconnection.voidonNotification(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
-
-