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
- Author:
- Gary Russell
Method Summary |
boolean |
onMessage(Message<?> message)
Called by a TCPConnection when a new message arrives. |
onMessage
boolean onMessage(Message<?> message)
- Called by a TCPConnection when a new message arrives.
- Parameters:
message
- The message.
- Returns:
- true if the message was intercepted
Copyright © 2010. All Rights Reserved.