public class BinaryEntity.Consumer extends Object implements net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>
| Constructor and Description |
|---|
Consumer(Long size)
Constructor.
|
Consumer(T io)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.async.IAsync<IOException> |
consume(ByteBuffer data) |
net.lecousin.framework.concurrent.async.IAsync<IOException> |
end() |
void |
error(IOException error) |
public Consumer(T io)
public Consumer(Long size)
public net.lecousin.framework.concurrent.async.IAsync<IOException> consume(ByteBuffer data)
consume in interface net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>public net.lecousin.framework.concurrent.async.IAsync<IOException> end()
end in interface net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>public void error(IOException error)
error in interface net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>Copyright © 2020. All rights reserved.