public abstract class CoroutineBase extends AsyncRunnableBase implements Coroutine
AsyncRunnable.StateTIMEOUT_NANOS| Modifier | Constructor and Description |
|---|---|
protected |
CoroutineBase(CoroutinesExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
invoke()
Decorates the invocation method with timing.
|
protected abstract void |
invokeTimed(long startTimeNanos)
The method implementation should use the start time to check its own duration in order to not
to exceed the invocation time limit (100 ms)
|
await, await, close, doClose, doShutdown, isClosed, isFinished, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawait, await, isClosed, isFinished, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stopprotected CoroutineBase(CoroutinesExecutor executor)
protected void doStart()
doStart in class AsyncRunnableBasepublic final void invoke()
protected abstract void invokeTimed(long startTimeNanos)
startTimeNanos - the time when the invocation startedprotected void doStop()
doStop in class AsyncRunnableBase