Interface TcpConnectionHandler<P>
- Type Parameters:
- P- the type of payload for in and outbound messages
- All Known Subinterfaces:
- ConnectionHandlingStompSession, StompTcpConnectionHandler<P>
- All Known Implementing Classes:
- DefaultStompSession
public interface TcpConnectionHandler<P>
A contract for managing lifecycle events for a TCP connection including
the handling of incoming messages.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterConnected(TcpConnection<P> connection) Invoked after a connection is successfully established.voidInvoked on failure to connect.voidInvoked after the connection is closed.voidHandle a failure on the connection.voidhandleMessage(Message<P> message) Handle a message received from the remote host.
- 
Method Details- 
afterConnectedInvoked after a connection is successfully established.- Parameters:
- connection- the connection
 
- 
afterConnectFailureInvoked on failure to connect.- Parameters:
- ex- the exception
 
- 
handleMessage
- 
handleFailure
- 
afterConnectionClosedvoid afterConnectionClosed()Invoked after the connection is closed.
 
-