Spring Integration

org.springframework.integration.ip.tcp.connection
Interface TcpListener

All Known Implementing Classes:
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 isListening()
          Return true if the connection factory is a server and it is listening.
 void onMessage(Message<?> message)
          Called by a TCPConnection when a new message arrives.
 

Method Detail

onMessage

void onMessage(Message<?> message)
Called by a TCPConnection when a new message arrives.

Parameters:
message - The message.

isListening

boolean isListening()
Return true if the connection factory is a server and it is listening.

Returns:
true if listening

Spring Integration

Copyright © 2010. All Rights Reserved.