public interface QuorumCommit<S extends HACommitGlue>
Quorum
defining
methods to support service the 2-phase quorum commit protocol.Modifier and Type | Method and Description |
---|---|
void |
abort2Phase(long token)
Used by the leader to send a message to each service joined with the
quorum telling it to discard its write set, reloading all state from the
last root block.
|
CommitResponse |
commit2Phase(CommitRequest req)
Used by the leader to send a message to each joined service in the quorum
telling it to commit using the root block from the corresponding
prepare message. |
PrepareResponse |
prepare2Phase(PrepareRequest req)
Used by the leader to send a message to each joined service in the quorum
instructing it to flush all writes to the backing channel, and
acknowledge "yes" if ready to commit.
|
PrepareResponse prepare2Phase(PrepareRequest req) throws InterruptedException, TimeoutException, IOException
commit
message.InterruptedException
TimeoutException
IOException
CommitResponse commit2Phase(CommitRequest req) throws IOException, InterruptedException
prepare
message. The commit MAY
NOT go forward unless both the current quorum token and the
lastCommitTime on this message agree with the quorum token and
lastCommitTime in the root block from the last "prepare" message.IOException
InterruptedException
void abort2Phase(long token) throws IOException, InterruptedException
token
- The quorum token.IOException
InterruptedException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.