public interface WritableBufferedByteChannel extends WritableByteChannel
WritableByteChannel
with buffered (i.e. non-flushable) write
operations, see writeBuffered(ByteBuffer)
. The messages are buffered
and the channel is flushed after the buffer has overflew.
WritableByteChannel.write(ByteBuffer)
flushes every written message.
You can flush the channel by writing
the zero length of ByteBuffer
.Modifier and Type | Method and Description |
---|---|
long |
countBufferOverflows() |
void |
writeBuffered(ByteBuffer src) |
write
void writeBuffered(ByteBuffer src) throws IOException
IOException
long countBufferOverflows()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.