P - the type of payload for in and outbound messagespublic interface TcpConnectionHandler<P>
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterConnected(TcpConnection<P> connection)
Invoked after a connection is successfully established. 
 | 
void | 
afterConnectFailure(Throwable ex)
Invoked on failure to connect. 
 | 
void | 
afterConnectionClosed()
Invoked after the connection is closed. 
 | 
void | 
handleFailure(Throwable ex)
Handle a failure on the connection. 
 | 
void | 
handleMessage(Message<P> message)
Handle a message received from the remote host. 
 | 
void afterConnected(TcpConnection<P> connection)
connection - the connectionvoid afterConnectFailure(Throwable ex)
ex - the exceptionvoid handleMessage(Message<P> message)
message - the messagevoid handleFailure(Throwable ex)
ex - the exceptionvoid afterConnectionClosed()