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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresent a listener capable of handling reopening signals. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe handler to call in case of a disconnection.voidonNotification(Notification notification) 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
The notification handler, will receive all notifications sent by AM. Duplicate notifications may occur.- Parameters:
notification- the received notification
-