org.springframework.integration.ip.tcp.connection
Interface TcpListener
- All Known Subinterfaces:
- TcpConnectionInterceptor
- All Known Implementing Classes:
- AbstractTcpConnectionInterceptor, TcpInboundGateway, TcpOutboundGateway, TcpReceivingChannelAdapter
public interface TcpListener
Classes that implement this interface may register with a
connection factory to receive messages retrieved from a
TcpConnection
- Since:
- 2.0
|
Method Summary |
boolean |
onMessage(org.springframework.integration.Message<?> message)
Called by a TCPConnection when a new message arrives. |
onMessage
boolean onMessage(org.springframework.integration.Message<?> message)
- Called by a TCPConnection when a new message arrives.
- Parameters:
message - The message.
- Returns:
- true if the message was intercepted