Interface WritableBufferedByteChannel
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.nio.channels.Channel
,java.io.Closeable
,java.nio.channels.WritableByteChannel
- All Known Implementing Classes:
AbstractNoninterruptibleWritableChannel
public interface WritableBufferedByteChannel extends java.nio.channels.WritableByteChannel
ExtendsWritableByteChannel
with buffered (i.e. non-flushable) write operations, seewriteBuffered(ByteBuffer)
. The messages are buffered and the channel is flushed after the buffer has overflew.
The methodWritableByteChannel.write(ByteBuffer)
flushes every written message. You can flush the channel bywriting
the zero length ofByteBuffer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
countBufferOverflows()
void
writeBuffered(java.nio.ByteBuffer src)
-