|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.client.simple.SimpleClient.SimpleClientConnectionListener
final class SimpleClient.SimpleClientConnectionListener
Receives callbacks on the associated ClientConnection.
| Constructor Summary | |
|---|---|
SimpleClient.SimpleClientConnectionListener()
|
|
| Method Summary | |
|---|---|
void |
connected(ClientConnection connection)
Notifies this listener that a transport connection has been established. |
void |
disconnected(boolean graceful,
byte[] message)
Notifies this listener that the associated server connection is disconnected. |
void |
receivedMessage(byte[] message)
Notifies this listener that protocol data has arrived from the server. |
void |
reconnected(byte[] message)
Notifies this listener that a reconnection effort was successful. |
void |
reconnecting(byte[] message)
Notifies this listener that its associated server connection is in the process of reconnecting with the server. |
ServerSessionListener |
sessionStarted(byte[] message)
Notifies this listener that a new session has successfully logged in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SimpleClient.SimpleClientConnectionListener()
| Method Detail |
|---|
public void connected(ClientConnection connection)
connected in interface ClientConnectionListenerconnection - the newly-established connection
public void disconnected(boolean graceful,
byte[] message)
If graceful is true, the disconnection was due to
the associated client gracefully logging out; otherwise, the
disconnection was due to other circumstances, such as forced
disconnection or network failure.
disconnected in interface ClientConnectionListenergraceful - true if disconnection was part of graceful
logout, otherwise falsemessage - protocol-specific reconnection datapublic void receivedMessage(byte[] message)
receivedMessage in interface ClientConnectionListenermessage - protocol-specific message datapublic void reconnected(byte[] message)
reconnected in interface ClientConnectionListenermessage - protocol-specific reconnection datapublic void reconnecting(byte[] message)
If a connection can be re-established with the server in a
timely manner, this listener's reconnected
method will be invoked. Otherwise, if a connection cannot be
re-established, this listener's disconnected
method will be invoked with false indicating that
the associated session has been disconnected from the server
and the client must log in again.
reconnecting in interface ClientConnectionListenermessage - protocol-specific reconnection datapublic ServerSessionListener sessionStarted(byte[] message)
sessionStarted in interface ClientConnectionListenermessage - protocol-specific session-start data
ServerSession
|
Project Darkstar, Version 0.9.8.8 2013-07-29 20:35:48 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||