public class PrepareResponse extends Object
Constructor and Description |
---|
PrepareResponse(int k,
int nyes,
boolean willCommit,
boolean[] votes) |
Modifier and Type | Method and Description |
---|---|
boolean |
getVote(int index) |
int |
getYesCount()
Return the #of services that voted "YES".
|
int |
replicationFactor()
The replication factor for the quorum.
|
String |
toString() |
boolean |
willCommit()
Return
true iff the transaction will commit based on the
responses to the prepare requests. |
public PrepareResponse(int k, int nyes, boolean willCommit, boolean[] votes)
k
- The replication factor for the quorum.nyes
- The #of YES votes.willCommit
- true
iff the transaction will commit based on the
responses to the prepare requests.public int replicationFactor()
public int getYesCount()
public boolean willCommit()
true
iff the transaction will commit based on the
responses to the prepare requests.public boolean getVote(int index)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.