Class AbstractPaxosRepair
java.lang.Object
org.apache.cassandra.service.paxos.AbstractPaxosRepair
- Direct Known Subclasses:
PaxosRepair
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interfacestatic classstatic classstatic interfaceAbstractPaxosRepair.StateUpdater<S,I, T extends Throwable> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AbstractPaxosRepair.Resultstatic final AbstractPaxosRepair.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListener(Consumer<AbstractPaxosRepair.Result> listener) addListener(AbstractPaxosRepair.Listener listener) add a listener to this repair, or if the repair has already completed, call the listener with the resultawait()final voidcancel()final voidbooleanbooleanfinal DecoratedKeyrestart(AbstractPaxosRepair.State state) abstract AbstractPaxosRepair.Staterestart(AbstractPaxosRepair.State state, long waitUntil) protected voidset(AbstractPaxosRepair.Result result) final AbstractPaxosRepairstart()longstate()protected <S extends AbstractPaxosRepair.State,I, T extends Throwable>
voidupdateState(S expect, I param, AbstractPaxosRepair.StateUpdater<S, I, T> transform)
-
Field Details
-
DONE
-
CANCELLED
-
-
Constructor Details
-
AbstractPaxosRepair
-
-
Method Details
-
state
-
startedNanos
public long startedNanos() -
isStarted
public boolean isStarted() -
isComplete
public boolean isComplete() -
incompleteBallot
-
addListener
add a listener to this repair, or if the repair has already completed, call the listener with the result -
addListener
-
partitionKey
-
restart
-
restart
-
start
-
cancel
public final void cancel() -
cancelUnexceptionally
public final void cancelUnexceptionally() -
await
- Throws:
InterruptedException
-
set
-
updateState
protected <S extends AbstractPaxosRepair.State,I, void updateStateT extends Throwable> (S expect, I param, AbstractPaxosRepair.StateUpdater<S, I, T> transform)
-