FileDocCategorySizeDatePackage
ChannelReceiver.javaAPI DocApache Tomcat 6.0.142528Fri Jul 20 04:20:34 BST 2007org.apache.catalina.tribes

ChannelReceiver

public interface ChannelReceiver implements Heartbeat
ChannelReceiver Interface
The ChannelReceiver interface is the data receiver component at the bottom layer, the IO layer (for layers see the javadoc for the {@link Channel} interface). This class may optionally implement a thread pool for parallel processing of incoming messages.
author
Filip Hanik
version
$Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetHost()
String representation of the IPv4 or IPv6 address that this host is listening to.

return
the host that this receiver is listening to

public MessageListenergetMessageListener()
Returns the message listener that is associated with this receiver

return
MessageListener
see
MessageListener

public intgetPort()
Returns the listening port

return
port

public intgetSecurePort()
Returns the secure listening port

return
port, -1 if a secure port is not activated

public voidsetMessageListener(MessageListener listener)
Sets the message listener to receive notification of incoming

param
listener MessageListener
see
MessageListener

public voidstart()
Start listening for incoming messages on the host/port

throws
java.io.IOException

public voidstop()
Stop listening for messages