public final class DelayedTransferConvertBuffer<I extends Item,O extends IoTask<I>> extends java.lang.Object implements TransferConvertBuffer<I,O>
| Constructor and Description |
|---|
DelayedTransferConvertBuffer(int limit,
java.util.concurrent.TimeUnit timeUnit,
long delay) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
I |
get() |
int |
get(java.util.List<I> buffer,
int limit) |
com.github.akurilov.commons.io.Input<O> |
getInput()
Don't use this method, it will cause the assertion error
|
int |
put(java.util.List<O> ioResults)
Block until all the given items are consumed
|
int |
put(java.util.List<O> ioResults,
int from,
int to)
Block until all the items from the given range are consumed
|
boolean |
put(O ioResult)
Block until the free space in the buff is available
|
void |
reset() |
long |
skip(long count) |
java.lang.String |
toString() |
public DelayedTransferConvertBuffer(int limit,
java.util.concurrent.TimeUnit timeUnit,
long delay)
public final boolean put(O ioResult) throws java.io.EOFException, java.io.IOException
public final int put(java.util.List<O> ioResults, int from, int to) throws java.io.EOFException, java.io.IOException
public final int put(java.util.List<O> ioResults) throws java.io.IOException
public final com.github.akurilov.commons.io.Input<O> getInput() throws java.io.IOException
public final I get() throws java.io.EOFException, java.io.IOException
public final int get(java.util.List<I> buffer, int limit) throws java.io.IOException
public final long skip(long count)
throws java.io.IOException
public final void reset()
throws java.io.IOException
public final void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic final java.lang.String toString()
toString in class java.lang.Object