public interface TwoPhaseVotingListener
Modifier and Type | Method and Description |
---|---|
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.
|
boolean prepare(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(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(Object decree) throws VoteException
VoteException
- if the listener ignores the abort.Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.