Class BufferedChannel
java.lang.Object
org.gridgain.internal.snapshots.buffer.BufferedChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
A buffering wrapper for
WritableByteChannel that accumulates small writes
into larger chunks before flushing to the underlying channel.-
Constructor Summary
ConstructorsConstructorDescriptionBufferedChannel(WritableByteChannel channel, DisposableByteBuffer buffer) Creates a buffered channel wrapping the given delegate with the specified buffer. -
Method Summary
-
Constructor Details
-
BufferedChannel
Creates a buffered channel wrapping the given delegate with the specified buffer.
-
-
Method Details
-
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-