Class AbstractCompletable<I>
- java.lang.Object
-
- org.apache.cassandra.repair.state.AbstractCompletable<I>
-
- All Implemented Interfaces:
Completable<I>
- Direct Known Subclasses:
AbstractState,ParticipateState
public class AbstractCompletable<I> extends java.lang.Object implements Completable<I>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractCompletable.BasePhaseprotected classAbstractCompletable.BaseSkipPhase-
Nested classes/interfaces inherited from interface org.apache.cassandra.repair.state.Completable
Completable.Result
-
-
Field Summary
Fields Modifier and Type Field Description Iidprotected longlastUpdatedAtNs
-
Constructor Summary
Constructors Constructor Description AbstractCompletable(I id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IgetId()longgetInitializedAtMillis()longgetInitializedAtNanos()longgetLastUpdatedAtMillis()longgetLastUpdatedAtNanos()Completable.ResultgetResult()protected longnanosToMillis(long nanos)protected voidonComplete()protected booleantryResult(Completable.Result result)voidupdated()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.repair.state.Completable
getDurationMillis, getFailureCause, getSuccessMessage, isComplete
-
-
-
-
Field Detail
-
id
public final I id
-
lastUpdatedAtNs
protected volatile long lastUpdatedAtNs
-
-
Constructor Detail
-
AbstractCompletable
public AbstractCompletable(I id)
-
-
Method Detail
-
getId
public I 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
public Completable.Result getResult()
- Specified by:
getResultin interfaceCompletable<I>
-
updated
public void updated()
-
tryResult
protected boolean tryResult(Completable.Result result)
-
onComplete
protected void onComplete()
-
nanosToMillis
protected long nanosToMillis(long nanos)
-
-