public interface Resource
extends java.rmi.Remote
Modifier and Type | Field and Description |
---|---|
static int |
VOTE_COMMIT |
static int |
VOTE_READONLY |
static int |
VOTE_ROLLBACK |
Modifier and Type | Method and Description |
---|---|
void |
commit_one_phase()
commit 1 phase.
|
void |
commit()
phase 2 of the 2PC.
|
void |
forget()
forget heuristics about this transaction.
|
int |
prepare()
phase 1 of the 2PC.
|
void |
rollback()
rollback transaction
|
static final int VOTE_COMMIT
static final int VOTE_ROLLBACK
static final int VOTE_READONLY
int prepare() throws java.rmi.RemoteException
java.rmi.RemoteException
void rollback() throws java.rmi.RemoteException
java.rmi.RemoteException
void commit() throws java.rmi.RemoteException
java.rmi.RemoteException
void commit_one_phase() throws java.rmi.RemoteException
java.rmi.RemoteException
void forget() throws java.rmi.RemoteException
java.rmi.RemoteException