AsyncRunnable, Coroutine, java.io.Closeable, java.lang.AutoCloseableExclusiveCoroutineBase, HelloWorldCoroutine, RoundRobinOutputCoroutinepublic abstract class CoroutineBase extends AsyncRunnableBase implements Coroutine
AsyncRunnable.StatestateTIMEOUT_NANOS| Modifier | Constructor | Description |
|---|---|---|
protected |
CoroutineBase(CoroutinesExecutor executor) |
| Modifier and Type | Method | 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, isClosed, isFinished, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stopawait, await, close, doClose, doShutdown, 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