public final class RoundRobinOutputCoroutine<T,O extends com.github.akurilov.commons.io.Output<T>> extends CoroutineBase implements OutputCoroutine<T>
AsyncRunnable.StateTIMEOUT_NANOS| Constructor and Description |
|---|
RoundRobinOutputCoroutine(CoroutinesExecutor executor,
java.util.List<O> outputs,
int buffCapacity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
com.github.akurilov.commons.io.Input<T> |
getInput() |
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)
|
int |
put(java.util.List<T> buffer) |
int |
put(java.util.List<T> srcBuff,
int from,
int to) |
boolean |
put(T ioTask) |
doStart, 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 RoundRobinOutputCoroutine(CoroutinesExecutor executor, java.util.List<O> outputs, int buffCapacity)
public final boolean put(T ioTask) throws java.io.IOException
put in interface com.github.akurilov.commons.io.Output<T>java.io.IOExceptionpublic final int put(java.util.List<T> srcBuff, int from, int to) throws java.io.IOException
put in interface com.github.akurilov.commons.io.Output<T>java.io.IOExceptionpublic final int put(java.util.List<T> buffer) throws java.io.IOException
put in interface com.github.akurilov.commons.io.Output<T>java.io.IOExceptionprotected final void invokeTimed(long startTimeNanos)
CoroutineBaseinvokeTimed in class CoroutineBasestartTimeNanos - the time when the invocation startedpublic final com.github.akurilov.commons.io.Input<T> getInput()
getInput in interface com.github.akurilov.commons.io.Output<T>protected final void doClose()
throws java.io.IOException
doClose in class AsyncRunnableBasejava.io.IOException