Interface WritableBufferedByteChannel
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,WritableByteChannel
Extends
The method
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.
The method
WritableByteChannel.write(ByteBuffer)
flushes every written message.
You can flush the channel by writing
the zero length of ByteBuffer
.-
Method Summary
Methods inherited from interface java.nio.channels.WritableByteChannel
write
-
Method Details
-
writeBuffered
- Throws:
IOException
-
countBufferOverflows
long countBufferOverflows()
-