|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelSender
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
Method Summary | |
---|---|
void |
add(Member member)
Notify the sender of a member being added to the group. |
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 |
Method Detail |
---|
void add(Member member)
member
- Membervoid remove(Member member)
member
- Membervoid start() throws IOException
IOException
- if preprocessing takes place and an error happensvoid stop()
void heartbeat()
heartbeat
in interface Heartbeat
void sendMessage(ChannelMessage message, Member[] destination) throws ChannelException
message
- ChannelMessage - the message to be sentdestination
- Member[] - the destinations
ChannelException
- - if an error happens, the ChannelSender MUST report
individual send failures on a per member basis, using ChannelException.addFaultyMemberChannelException.addFaultyMember(Member,java.lang.Exception)
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |