public class AbstractCompletable<I> extends java.lang.Object implements Completable<I>
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractCompletable.BasePhase |
protected class |
AbstractCompletable.BaseSkipPhase |
Completable.Result
Modifier and Type | Field and Description |
---|---|
I |
id |
protected long |
lastUpdatedAtNs |
Constructor and Description |
---|
AbstractCompletable(I id) |
Modifier and Type | Method and Description |
---|---|
I |
getId() |
long |
getInitializedAtMillis() |
long |
getInitializedAtNanos() |
long |
getLastUpdatedAtMillis() |
long |
getLastUpdatedAtNanos() |
Completable.Result |
getResult() |
protected long |
nanosToMillis(long nanos) |
protected void |
onComplete() |
protected boolean |
tryResult(Completable.Result result) |
void |
updated() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDurationMillis, getFailureCause, getSuccessMessage, isComplete
public final I id
protected volatile long lastUpdatedAtNs
public AbstractCompletable(I id)
public I getId()
getId
in interface Completable<I>
public long getInitializedAtMillis()
getInitializedAtMillis
in interface Completable<I>
public long getInitializedAtNanos()
getInitializedAtNanos
in interface Completable<I>
public long getLastUpdatedAtMillis()
getLastUpdatedAtMillis
in interface Completable<I>
public long getLastUpdatedAtNanos()
getLastUpdatedAtNanos
in interface Completable<I>
public Completable.Result getResult()
getResult
in interface Completable<I>
public void updated()
protected boolean tryResult(Completable.Result result)
protected void onComplete()
protected long nanosToMillis(long nanos)
Copyright © 2009- The Apache Software Foundation