AsyncRunnable, Coroutine, java.io.Closeable, java.lang.AutoCloseableHelloWorldExclusiveCoroutine, TransferCoroutinepublic abstract class ExclusiveCoroutineBase extends CoroutineBase
AsyncRunnable.StatestateTIMEOUT_NANOS| Modifier | Constructor | Description |
|---|---|---|
protected |
ExclusiveCoroutineBase(CoroutinesExecutor executor) |
|
protected |
ExclusiveCoroutineBase(CoroutinesExecutor executor,
java.util.concurrent.locks.Lock invocationLock) |
| Modifier and Type | Method | Description |
|---|---|---|
protected 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)
|
protected abstract void |
invokeTimedExclusively(long startTimeNanos) |
The method is guaranteed to be executing only in a single thread.
|
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, stopdoStart, doStop, invokeprotected ExclusiveCoroutineBase(CoroutinesExecutor executor)
protected ExclusiveCoroutineBase(CoroutinesExecutor executor, java.util.concurrent.locks.Lock invocationLock)
protected final void invokeTimed(long startTimeNanos)
CoroutineBaseinvokeTimed in class CoroutineBasestartTimeNanos - the time when the invocation startedprotected abstract void invokeTimedExclusively(long startTimeNanos)
startTimeNanos - the time when the invocation started