|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
Represents a managed peer connection, over which messages can be sent and received.
Method Summary | |
---|---|
void |
close()
Close and shutdown this connection. |
void |
connect(ConnectionListener listener)
Connect this connection's transport, i.e. |
IncomingMessageQueue |
getIncomingMessageQueue()
Get the connection's incoming message queue. |
OutgoingMessageQueue |
getOutgoingMessageQueue()
Get the connection's outgoing message queue. |
String |
getString()
descriptive text for the connection |
Transport |
getTransport()
Returns the transport object for this connection. |
boolean |
isIncoming()
Returns true if the connection represents an incoming connection. |
void |
startMessageProcessing()
Begin processing incoming and outgoing message queues. |
Method Detail |
---|
void connect(ConnectionListener listener)
listener
- notified on connect success or failurevoid close()
OutgoingMessageQueue getOutgoingMessageQueue()
IncomingMessageQueue getIncomingMessageQueue()
void startMessageProcessing()
Transport getTransport()
boolean isIncoming()
String getString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |