public interface ByteBufferDestination
Encoder
s write binary data to. It encapsulates a
ByteBuffer
and a drain()
method the producer can call when the ByteBuffer
is full.
This interface allows a producer to write arbitrary amounts of data to a destination.
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
drain(ByteBuffer buf)
Consumes the buffer content and returns a buffer with more available space
(which may or may not be the same instance).
|
ByteBuffer |
getByteBuffer()
Returns the buffer to write to.
|
ByteBuffer getByteBuffer()
ByteBuffer drain(ByteBuffer buf)
Called by the producer when buffer becomes too full to write to.
buf
- the buffer to drainCopyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.