public class PrepareCallback extends AbstractPaxosCallback<PrepareResponse>
Modifier and Type | Field and Description |
---|---|
Commit |
mostRecentCommit |
Commit |
mostRecentInProgressCommit |
boolean |
promised |
latch, targets
Constructor and Description |
---|
PrepareCallback(DecoratedKey key,
TableMetadata metadata,
int targets,
ConsistencyLevel consistency,
long queryStartNanoTime) |
Modifier and Type | Method and Description |
---|---|
void |
onResponse(Message<PrepareResponse> message) |
java.lang.Iterable<InetAddressAndPort> |
replicasMissingMostRecentCommit(TableMetadata metadata,
int nowInSec) |
await, getResponseCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokeOnFailure, onFailure, trackLatencyForSnitch
public boolean promised
public Commit mostRecentCommit
public Commit mostRecentInProgressCommit
public PrepareCallback(DecoratedKey key, TableMetadata metadata, int targets, ConsistencyLevel consistency, long queryStartNanoTime)
public void onResponse(Message<PrepareResponse> message)
message
- response received.public java.lang.Iterable<InetAddressAndPort> replicasMissingMostRecentCommit(TableMetadata metadata, int nowInSec)
Copyright © 2009-2022 The Apache Software Foundation