Interface TcpListener
- All Known Subinterfaces:
TcpConnectionInterceptor
- All Known Implementing Classes:
TcpConnectionInterceptorSupport
,TcpInboundGateway
,TcpOutboundGateway
,TcpReceivingChannelAdapter
,TcpSyslogReceivingChannelAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface 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 Details
-
onMessage
Called by a TCPConnection when a new message arrives.- Parameters:
message
- The message.- Returns:
- true if the message was intercepted
-