Interface WritableBufferedByteChannel
-
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,WritableByteChannel
public interface WritableBufferedByteChannel extends 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(ByteBuffer src)
-
Methods inherited from interface java.nio.channels.WritableByteChannel
write
-
-
-
-
Method Detail
-
writeBuffered
void writeBuffered(ByteBuffer src) throws IOException
- Throws:
IOException
-
countBufferOverflows
long countBufferOverflows()
-
-