public class BlockingPartitionRepair 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,
ReplicaPlan.ForTokenWrite writePlan) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitRepairsUntil(long timeoutAt,
java.util.concurrent.TimeUnit timeUnit)
Wait for the repair to complete util a future time
If the is a past time, the method returns immediately with the repair result.
|
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, trackLatencyForSnitch
public BlockingPartitionRepair(DecoratedKey key, java.util.Map<Replica,Mutation> repairs, ReplicaPlan.ForTokenWrite writePlan)
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 awaitRepairsUntil(long timeoutAt, java.util.concurrent.TimeUnit timeUnit)
timeoutAt,
- future timetimeUnit,
- the time unit of the future timepublic void maybeSendAdditionalWrites(long timeout, java.util.concurrent.TimeUnit timeoutUnit)
Copyright © 2009- The Apache Software Foundation