public class IOReaderAsProducer extends Object implements Producer<ByteBuffer>
| Constructor and Description |
|---|
IOReaderAsProducer(IO.Readable io,
int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(CancelException event)
Cancel any pending production and stop it.
|
AsyncSupplier<ByteBuffer,IOException> |
produce(Production<ByteBuffer> production)
Ask to produce a new object.
|
public IOReaderAsProducer(IO.Readable io, int bufferSize)
public AsyncSupplier<ByteBuffer,IOException> produce(Production<ByteBuffer> production)
Producerproduce in interface Producer<ByteBuffer>public void cancel(CancelException event)
Producercancel in interface Producer<ByteBuffer>Copyright © 2019. All rights reserved.