public class TransferCoroutine<T> extends ExclusiveCoroutineBase implements Coroutine
AsyncRunnable.StateTIMEOUT_NANOS| Constructor and Description |
|---|
TransferCoroutine(CoroutinesExecutor executor,
com.github.akurilov.commons.io.Input<T> input,
com.github.akurilov.commons.io.Output<T> output,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected void |
invokeTimedExclusively(long startTimeNanos)
The method is guaranteed to be executing only in a single thread.
|
invokeTimeddoStart, doStop, invokeawait, await, close, 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, stoppublic TransferCoroutine(CoroutinesExecutor executor, com.github.akurilov.commons.io.Input<T> input, com.github.akurilov.commons.io.Output<T> output, int batchSize)
protected final void invokeTimedExclusively(long startTimeNanos)
ExclusiveCoroutineBaseinvokeTimedExclusively in class ExclusiveCoroutineBasestartTimeNanos - the time when the invocation startedprotected final void doClose()
throws java.io.IOException
doClose in class AsyncRunnableBasejava.io.IOException