public interface ClientDisconnectHandler2
ClientDisconnectHandler
and ClientDisconnectHandler2
, so that it will
be accepted by Client.setDisconnectHandler(ClientDisconnectHandler)
.
The method from this interface can be used to obtain the exception that caused the client to disconnect.Modifier and Type | Method and Description |
---|---|
void |
invoke(Client client,
java.lang.Exception e)
When the Client unintentionally disconnects from AMPS, this method is
invoked.
|
void invoke(Client client, java.lang.Exception e)
client
- The client that unintentionally disconnected from AMPS.e
- The exception thrown when the client unintentionally disconnected.