|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.foundation.net.ConnectionBase
org.elkoserver.foundation.net.TCPConnection
public class TCPConnection
An implementation of Connection that manages a non-blocking TCP
connection to a single remote host.
| Field Summary |
|---|
| Fields inherited from class org.elkoserver.foundation.net.ConnectionBase |
|---|
theCloseMarker |
| Method Summary | |
|---|---|
Object |
call()
Invoked from the selector thread's work queue when the selector is ready to do a write. |
void |
close()
Shut down the connection. |
boolean |
isWritable()
Test if this connection is available for writes. |
String |
label()
Get a short string for labelling this connection in log entries. |
void |
receiveMsg(Object message)
Receive an incoming message from the remote end. |
void |
sendMsg(Object message)
Send a message to the other end of the connection. |
String |
toString()
Obtain a printable String representation of this connection. |
| Methods inherited from class org.elkoserver.foundation.net.ConnectionBase |
|---|
connectionDied, enqueueHandlerFactory, enqueueReceivedMessage, id, setDebugMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Object call()
call in interface Callable<Object>public void close()
close in interface Connectionpublic boolean isWritable()
public String label()
public void receiveMsg(Object message)
receiveMsg in interface MessageReceivermessage - the incoming message.public void sendMsg(Object message)
sendMsg in interface Connectionmessage - The message to be sent.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||