Interface WritableBufferedByteChannel
-
- All Superinterfaces:
java.lang.AutoCloseable,java.nio.channels.Channel,java.io.Closeable,java.nio.channels.WritableByteChannel
public interface WritableBufferedByteChannel extends java.nio.channels.WritableByteChannelExtendsWritableByteChannelwith 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 bywritingthe zero length ofByteBuffer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcountBufferOverflows()voidwriteBuffered(java.nio.ByteBuffer src)
-