Package io.nats.client
Interface ConnectionListener
-
public interface ConnectionListenerApplications can use a ConnectionListener to track the status of aConnection. The listener is configured in theOptionsat creation time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConnectionListener.Events
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectionEvent(Connection conn, ConnectionListener.Events type)Connection related events that occur asynchronously in the client code are sent to a ConnectionListener via a single method.
-
-
-
Method Detail
-
connectionEvent
void connectionEvent(Connection conn, ConnectionListener.Events type)
Connection related events that occur asynchronously in the client code are sent to a ConnectionListener via a single method. The ConnectionListener can use the event type to decide what to do about the problem.- Parameters:
conn- the connection associated with the errortype- the type of event that has occurred
-
-