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