public interface ConnectionListener
Connection. The
listener is configured in the Options at creation time.| Modifier and Type | Interface and Description |
|---|---|
static class |
ConnectionListener.Events
Enum for connection events
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionEvent(Connection conn,
ConnectionListener.Events type)
Deprecated.
use new api that gives additional details
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.
|
default void |
connectionEvent(Connection conn,
ConnectionListener.Events type,
java.lang.Long time,
java.lang.String uriDetails)
Connection related events that occur asynchronously in the client code are
sent to a ConnectionListener via a single method.
|
@Deprecated void connectionEvent(Connection conn, ConnectionListener.Events type)
conn - the connection associated with the errortype - the type of event that has occurreddefault void connectionEvent(Connection conn, ConnectionListener.Events type, java.lang.Long time, java.lang.String uriDetails)
conn - the connection associated with the errortype - the type of event that has occurredtime - the time of the event, milliseconds since 1/1/1970uriDetails - extra details about the uri related to this connection event