public abstract class ExclusiveCoroutineBase extends CoroutineBase
AsyncRunnable.StateTIMEOUT_NANOS| Modifier | Constructor and Description |
|---|---|
protected |
ExclusiveCoroutineBase(CoroutinesExecutor executor) |
protected |
ExclusiveCoroutineBase(CoroutinesExecutor executor,
java.util.concurrent.locks.Lock invocationLock) |
| Modifier and Type | Method and 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.
|
doStart, doStop, invokeawait, 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 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