public interface EventHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onClientRequestedDisconnection()
Called when a client wants the session to disconnect immediately
|
void |
onClientRequestedLogon()
Called when a client wants the session to logon
|
void |
onClientRequestedLogout()
Called when a client wants the session to gracefully logout
|
void |
onConnection()
Called when a connection is made to a MF server.
|
void |
onDisconnection()
Called when a connection is lost from a MF server.
|
void |
onReadable()
Called when a connection has data to read
|
void |
onTimer(long currentTimeMillis)
Called periodically to generate a stream of events that can be used to send heartbeats, detect dead connections, etc.
|
void |
onWritable()
Called when a connection can be written to.
|
void onConnection()
void onDisconnection()
void onTimer(long currentTimeMillis)
currentTimeMillis - current time in epoch millisecondsvoid onReadable()
void onWritable()
void onClientRequestedLogon()
void onClientRequestedLogout()
void onClientRequestedDisconnection()