|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TwoPhaseCommit
An interface for implementations that support 2-phase commit. You can use
TwoPhaseCommitTool
to execute a 2-phase commit algorithm over several
TwoPhaseCommit
s.
Method Summary | |
---|---|
void |
commit()
The second phase of a 2-phase commit. |
void |
prepareCommit()
The first stage of a 2-phase commit. |
void |
rollback()
Discards any changes that have occurred since the last commit. |
Method Detail |
---|
void prepareCommit() throws IOException
rollback()
is called to discard all changes
since last successful commit.
IOException
void commit() throws IOException
prepareCommit()
, and
after it returns, the caller can assume that the changes were successfully
committed to the underlying storage.
IOException
void rollback() throws IOException
commit()
or
prepareCommit()
, this method is used to roll all other objects
back to their previous state.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |