public class DefaultDisconnectHandler extends java.lang.Object implements ClientDisconnectHandler, TransportDisconnectHandler
ClientDisconnectHandler
and
TransportDisconnectHandler
interfaces that does nothing.Modifier and Type | Field and Description |
---|---|
static DefaultDisconnectHandler |
instance
Singleton instance of DefaultDisconnectHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
invoke(Client client)
Invokes the disconnection handler for the client.
|
void |
invoke(Transport transport,
java.lang.Exception e_)
Invokes the disconnection handler for the transport.
|
void |
preInvoke(int version)
Pre-invocation setup for the disconnection handler.
|
public static final DefaultDisconnectHandler instance
public void invoke(Client client)
invoke
in interface ClientDisconnectHandler
client
- The client being disconnected.public void invoke(Transport transport, java.lang.Exception e_)
invoke
in interface TransportDisconnectHandler
transport
- The transport being disconnected.e_
- The exception associated with the disconnection.public void preInvoke(int version)
preInvoke
in interface TransportDisconnectHandler
version
- The version of the disconnection.