org.jgroups.blocks

Interface TwoPhaseVotingListener

public interface TwoPhaseVotingListener

Implementations of this interface can participate in two-phase voting process.

Author: Roman Rokytskyy (rrokytskyy@acm.org)

Method Summary
voidabort(Object decree)
This is unconditional abort of the previous voting on the decree.
booleancommit(Object decree)
This is voting on the commiting the decree.
booleanprepare(Object decree)
This is voting if the decree is acceptable to the party.

Method Detail

abort

public void abort(Object decree)
This is unconditional abort of the previous voting on the decree.

Throws: VoteException if the listener ignores the abort.

commit

public boolean commit(Object decree)
This is voting on the commiting the decree.

Returns: true is the decree is commited.

Throws: VoteException if the decree type is unknown or listener does not want to vote on it.

prepare

public boolean prepare(Object decree)
This is voting if the decree is acceptable to the party.

Returns: true if the decree is acceptable.

Throws: VoteException if the decree type is unknown or listener does not want to vote on it.

Copyright ? 1998-2005 Bela Ban. All Rights Reserved.