|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TwoPhaseVotingListener
Implementations of this interface can participate in two-phase voting process.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||