org.jgroups.blocks
Interface TwoPhaseVotingListener
- DistributedLockManager
public interface TwoPhaseVotingListener
Implementations of this interface can participate in two-phase voting process.
- Roman Rokytskyy (rrokytskyy@acm.org)
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.
|
abort
public void abort(Object decree)
throws VoteException
This is unconditional abort of the previous voting on the decree.
VoteException
- if the listener ignores the abort.
commit
public boolean commit(Object decree)
throws VoteException
This is voting on the commiting the decree.
true
is the decree is commited.
VoteException
- if the decree type is unknown or listener
does not want to vote on it.
prepare
public boolean prepare(Object decree)
throws VoteException
This is voting if the decree is acceptable to the party.
true
if the decree is acceptable.
VoteException
- if the decree type is unknown or listener
does not want to vote on it.
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.