com.github.akurilov.commons.io.Output<T>, AsyncRunnable, Coroutine, OutputCoroutine<T>, java.io.Closeable, java.lang.AutoCloseablepublic final class RoundRobinOutputCoroutine<T,O extends com.github.akurilov.commons.io.Output<T>> extends CoroutineBase implements OutputCoroutine<T>
AsyncRunnable.StatestateTIMEOUT_NANOS| Constructor | Description |
|---|---|
RoundRobinOutputCoroutine(CoroutinesExecutor executor,
java.util.List<O> outputs,
int buffCapacity) |
| Modifier and Type | Method | 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) |
await, await, isClosed, isFinished, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stopawait, await, close, doShutdown, isClosed, isFinished, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stopdoStart, doStop, invokepublic 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