|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelReceiver
ChannelReceiver Interface
The ChannelReceiver
interface is the data receiver component
at the bottom layer, the IO layer (for layers see the javadoc for the Channel
interface).
This class may optionally implement a thread pool for parallel processing of incoming messages.
Field Summary | |
---|---|
static int |
MAX_UDP_SIZE
|
Method Summary | |
---|---|
String |
getHost()
String representation of the IPv4 or IPv6 address that this host is listening to. |
MessageListener |
getMessageListener()
Returns the message listener that is associated with this receiver |
int |
getPort()
Returns the listening port |
int |
getSecurePort()
Returns the secure listening port |
int |
getUdpPort()
Returns the UDP port |
void |
setMessageListener(MessageListener listener)
Sets the message listener to receive notification of incoming |
void |
start()
Start listening for incoming messages on the host/port |
void |
stop()
Stop listening for messages |
Methods inherited from interface org.apache.catalina.tribes.Heartbeat |
---|
heartbeat |
Field Detail |
---|
static final int MAX_UDP_SIZE
Method Detail |
---|
void start() throws IOException
IOException
void stop()
String getHost()
int getPort()
int getSecurePort()
int getUdpPort()
void setMessageListener(MessageListener listener)
listener
- MessageListenerMessageListener
MessageListener getMessageListener()
MessageListener
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |