|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransportContext
The TransportContext defines the methods that a Transport implementation can use to notify the BEEP implementation about important events.
Method Summary | |
---|---|
void |
connectionClosed()
Invoked by the Transport when the underlying physical connection has been closed. |
void |
connectionEstablished(java.net.SocketAddress address)
Notifies the context that the physical connection has been established. |
void |
exceptionCaught(java.lang.Throwable cause)
Invoked by the Transport to notify the context about an exception that has been caught while sending or processing a message. |
void |
messageReceived(java.nio.ByteBuffer buffer)
Invoked by the Transport whenever new content has been received. |
Method Detail |
---|
void connectionEstablished(java.net.SocketAddress address)
address
- the SocketAddress of the remote peervoid exceptionCaught(java.lang.Throwable cause)
cause
- the causing exceptionvoid messageReceived(java.nio.ByteBuffer buffer)
buffer
- the received bytesvoid connectionClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |