| org.apache.catalina.tribes.ChannelSender
All known Subclasses: org.apache.catalina.tribes.transport.ReplicationTransmitter,
ChannelSender | public interface ChannelSender extends Heartbeat(Code) | | ChannelReceiver Interface
The ChannelSender interface is the data sender component
at the bottom layer, the IO layer (for layers see the javadoc for the
Channel interface).
The channel sender must support "silent" members, ie, be able to send a message to a member
that is not in the membership, but is part of the destination parameter
author: Filip Hanik version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
public void | add(Member member) Notify the sender of a member being added to the group.
Optional. | public void | heartbeat() | public void | remove(Member member) Notification that a member has been removed or crashed. | public void | sendMessage(ChannelMessage message, Member[] destination) Send a message to one or more recipients. | public void | start() | public void | stop() |
add | public void add(Member member)(Code) | | Notify the sender of a member being added to the group.
Optional. This can be an empty implementation, that does nothing
Parameters: member - Member |
heartbeat | public void heartbeat()(Code) | | A channel heartbeat, use this method to clean up resources
|
remove | public void remove(Member member)(Code) | | Notification that a member has been removed or crashed.
Can be used to clean up open connections etc
Parameters: member - Member |
start | public void start() throws java.io.IOException(Code) | | Start the channel sender
throws: IOException - if preprocessing takes place and an error happens |
stop | public void stop()(Code) | | Stop the channel sender
|
|
|