Interface TcpListener
- All Known Subinterfaces:
TcpConnectionInterceptor
- All Known Implementing Classes:
TcpConnectionInterceptorSupport,TcpInboundGateway,TcpOutboundGateway,TcpReceivingChannelAdapter
- 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
-
Method Summary
Modifier and Type Method Description booleanonMessage(org.springframework.messaging.Message<?> message)Called by a TCPConnection when a new message arrives.
-
Method Details
-
onMessage
boolean onMessage(org.springframework.messaging.Message<?> message)Called by a TCPConnection when a new message arrives.- Parameters:
message- The message.- Returns:
- true if the message was intercepted
-