public interface TwoPhaseCommit
TwoPhaseCommitToolto execute a 2-phase commit algorithm over several
void prepareCommit() throws IOException
rollback()is called to discard all changes since last successful commit.
void commit() throws IOException
prepareCommit(), and after it returns, the caller can assume that the changes were successfully committed to the underlying storage.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.