ChannelSenderpublic interface ChannelSender implements HeartbeatChannelReceiver Interface
The ChannelSender interface is the data sender component
at the bottom layer, the IO layer (for layers see the javadoc for the {@link 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 |
Methods Summary |
---|
public void | add(Member member)Notify the sender of a member being added to the group.
Optional. This can be an empty implementation, that does nothing
| public void | heartbeat()A channel heartbeat, use this method to clean up resources
| public void | remove(Member member)Notification that a member has been removed or crashed.
Can be used to clean up open connections etc
| public void | sendMessage(ChannelMessage message, Member[] destination)Send a message to one or more recipients.
| public void | start()Start the channel sender
| public void | stop()Stop the channel sender
|
|