org.objectweb.jotm
Interface Resource
- Remote
- ControlImpl, SubCoordinator
public interface Resource
extends Remote
This interface must be implemented by objects that will be
registered to the JTM Coordinator. They may be remote.
VOTE_COMMIT
public static final int VOTE_COMMIT
- 0
VOTE_READONLY
public static final int VOTE_READONLY
- 2
VOTE_ROLLBACK
public static final int VOTE_ROLLBACK
- 1
commit
public void commit()
throws RemoteException
phase 2 of the 2PC.
commit_one_phase
public void commit_one_phase()
throws RemoteException
commit 1 phase.
forget
public void forget()
throws RemoteException
forget heuristics about this transaction.
prepare
public int prepare()
throws RemoteException
phase 1 of the 2PC.
- int vote commit, rollback, or readonly.
rollback
public void rollback()
throws RemoteException
rollback transaction