|
jGCS Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockSession
This class defines a BlockSession. This session should be used by toolkits that implement Group Communication with flush of messages before a view change.
Method Summary | |
---|---|
void |
blockOk()
This method must be used by the application after it received a block notification and flushed all pending messages. |
boolean |
isBlocked()
Verifies if the group is blocked or not. |
void |
setBlockListener(BlockListener listener)
Registers a listener for the block notification. |
Methods inherited from interface net.sf.jgcs.membership.MembershipSession |
---|
getMembership, getMembershipID, setMembershipListener |
Methods inherited from interface net.sf.jgcs.ControlSession |
---|
getLocalAddress, isJoined, join, leave, setControlListener, setExceptionListener |
Method Detail |
---|
void blockOk() throws NotJoinedException, JGCSException
NotJoinedException
- if the member is not in a group.
JGCSException
- if an error ocurs.boolean isBlocked() throws NotJoinedException
NotJoinedException
- if the member is not in a group.void setBlockListener(BlockListener listener) throws JGCSException
listener
- the listener to register.
JGCSException
- if an error ocurs.
|
jGCS Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |