public interface TwoPhaseVotingListener
Modifier and Type | Method and Description |
---|---|
void |
abort(java.lang.Object decree)
This is unconditional abort of the previous voting on the decree.
|
boolean |
commit(java.lang.Object decree)
This is voting on the commiting the decree.
|
boolean |
prepare(java.lang.Object decree)
This is voting if the decree is acceptable to the party.
|
boolean prepare(java.lang.Object decree) throws VoteException
true
if the decree is acceptable.VoteException
- if the decree type is unknown or listener
does not want to vote on it.boolean commit(java.lang.Object decree) throws VoteException
true
is the decree is commited.VoteException
- if the decree type is unknown or listener
does not want to vote on it.void abort(java.lang.Object decree) throws VoteException
VoteException
- if the listener ignores the abort.Copyright ? 1998-2008 Bela Ban. All Rights Reserved.