| org.jgroups.blocks.TwoPhaseVotingListener
All known Subclasses: org.jgroups.blocks.DistributedLockManager,
TwoPhaseVotingListener | public interface TwoPhaseVotingListener (Code) | | Implementations of this interface can participate in two-phase voting process.
author: Roman Rokytskyy (rrokytskyy@acm.org) |
Method Summary | |
void | abort(Object decree) This is unconditional abort of the previous voting on the decree. | boolean | commit(Object decree) This is voting on the commiting the decree. | boolean | prepare(Object decree) This is voting if the decree is acceptable to the party. |
commit | boolean commit(Object decree) throws VoteException(Code) | | This is voting on the commiting the decree.
true is the decree is commited. throws: VoteException - if the decree type is unknown or listenerdoes not want to vote on it. |
prepare | boolean prepare(Object decree) throws VoteException(Code) | | This is voting if the decree is acceptable to the party.
true if the decree is acceptable. throws: VoteException - if the decree type is unknown or listenerdoes not want to vote on it. |
|
|