public class BlockingPartitionRepair<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E>> extends com.google.common.util.concurrent.AbstractFuture<java.lang.Object> implements RequestCallback<java.lang.Object>
Constructor and Description |
---|
BlockingPartitionRepair(DecoratedKey key,
java.util.Map<Replica,Mutation> repairs,
int maxBlockFor,
P replicaPlan) |
BlockingPartitionRepair(DecoratedKey key,
java.util.Map<Replica,Mutation> repairs,
int maxBlockFor,
P replicaPlan,
java.util.function.Predicate<InetAddressAndPort> shouldBlockOn) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitRepairs(long timeout,
java.util.concurrent.TimeUnit timeoutUnit) |
void |
maybeSendAdditionalWrites(long timeout,
java.util.concurrent.TimeUnit timeoutUnit)
If it looks like we might not receive acks for all the repair mutations we sent out, combine all
the unacked mutations and send them to the minority of nodes not involved in the read repair data
read / write cycle.
|
void |
onResponse(Message<java.lang.Object> msg) |
void |
sendInitialRepairs() |
protected void |
sendRR(Message<Mutation> message,
InetAddressAndPort endpoint) |
addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, pendingToString, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invokeOnFailure, onFailure, supportsBackPressure, trackLatencyForSnitch
public BlockingPartitionRepair(DecoratedKey key, java.util.Map<Replica,Mutation> repairs, int maxBlockFor, P replicaPlan)
public BlockingPartitionRepair(DecoratedKey key, java.util.Map<Replica,Mutation> repairs, int maxBlockFor, P replicaPlan, java.util.function.Predicate<InetAddressAndPort> shouldBlockOn)
public void onResponse(Message<java.lang.Object> msg)
onResponse
in interface RequestCallback<java.lang.Object>
msg
- response received.protected void sendRR(Message<Mutation> message, InetAddressAndPort endpoint)
public void sendInitialRepairs()
public boolean awaitRepairs(long timeout, java.util.concurrent.TimeUnit timeoutUnit)
public void maybeSendAdditionalWrites(long timeout, java.util.concurrent.TimeUnit timeoutUnit)
Copyright © 2009-2019 The Apache Software Foundation