org.apache.catalina.tribes
public interface ChannelSender extends Heartbeat
ChannelSender
interface is the data sender component
at the bottom layer, the IO layer (for layers see the javadoc for the Channel interface).Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Method Summary | |
---|---|
void | add(Member member)
Notify the sender of a member being added to the group. Optional. |
void | heartbeat()
A channel heartbeat, use this method to clean up resources |
void | remove(Member member)
Notification that a member has been removed or crashed.
|
void | sendMessage(ChannelMessage message, Member[] destination)
Send a message to one or more recipients. |
void | start()
Start the channel sender |
void | stop()
Stop the channel sender |
Parameters: member Member
Parameters: member Member
Parameters: message ChannelMessage - the message to be sent destination Member[] - the destinations
Throws: ChannelException - if an error happens, the ChannelSender MUST report individual send failures on a per member basis, using ChannelException.addFaultyMember
See Also: ChannelException
Throws: IOException if preprocessing takes place and an error happens