|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionListener
Listener that can be registered with the Client to receive a callback if the target server for said Client is determined to be unreachable at any point.
Can also be registered with Connector to be notified when client disconnects (but only when leasing is turned on).
Method Summary | |
---|---|
void |
handleConnectionException(java.lang.Throwable throwable,
Client client)
Called when a target server or client found to be dead. |
Method Detail |
---|
void handleConnectionException(java.lang.Throwable throwable, Client client)
throwable
- - original exception thrown when trying to connect to target server. If is
listener on server for client failure, the exception will be a
ClientDisconnectedException if the client disconnected normally, or null if the lease
expired.client
- - the client from which this call was made.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |