|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resource
This interface must be implemented by objects that will be registered to the JTM Coordinator. They may be remote.
Field Summary | |
---|---|
static int |
VOTE_COMMIT
|
static int |
VOTE_READONLY
|
static int |
VOTE_ROLLBACK
|
Method Summary | |
---|---|
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 |
Field Detail |
---|
static final int VOTE_COMMIT
static final int VOTE_ROLLBACK
static final int VOTE_READONLY
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |