Class AbstractCompletable<I>
java.lang.Object
org.apache.cassandra.repair.state.AbstractCompletable<I>
- All Implemented Interfaces:
Completable<I>
- Direct Known Subclasses:
AbstractState,ParticipateState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classstatic enumNested classes/interfaces inherited from interface org.apache.cassandra.repair.state.Completable
Completable.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()longlonglonglongabstract booleanprotected longnanosToMillis(long nanos) protected voidprotected booleantryResult(Completable.Result result) voidupdated()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.repair.state.Completable
getDurationMillis, getFailureCause, getSuccessMessage, isComplete
-
Field Details
-
clock
-
id
-
lastUpdatedAtNs
protected volatile long lastUpdatedAtNs
-
-
Constructor Details
-
AbstractCompletable
-
-
Method Details
-
isAccepted
public abstract boolean isAccepted() -
getCompletionStatus
-
getId
- Specified by:
getIdin interfaceCompletable<I>
-
getInitializedAtMillis
public long getInitializedAtMillis()- Specified by:
getInitializedAtMillisin interfaceCompletable<I>
-
getInitializedAtNanos
public long getInitializedAtNanos()- Specified by:
getInitializedAtNanosin interfaceCompletable<I>
-
getLastUpdatedAtMillis
public long getLastUpdatedAtMillis()- Specified by:
getLastUpdatedAtMillisin interfaceCompletable<I>
-
getLastUpdatedAtNanos
public long getLastUpdatedAtNanos()- Specified by:
getLastUpdatedAtNanosin interfaceCompletable<I>
-
getResult
- Specified by:
getResultin interfaceCompletable<I>
-
updated
public void updated() -
tryResult
-
onComplete
protected void onComplete() -
nanosToMillis
protected long nanosToMillis(long nanos)
-