Class TrackedSeekableByteChannel

java.lang.Object
io.deephaven.engine.util.file.FileHandleAccessor
io.deephaven.engine.util.file.TrackedSeekableByteChannel
All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, ReadableByteChannel, SeekableByteChannel, WritableByteChannel

public final class TrackedSeekableByteChannel extends FileHandleAccessor implements SeekableByteChannel

SeekableByteChannel wrapper around FileHandle with support for re-opening the handle in case it has been closed asynchronously.

Note the applications must be sure to use read(ByteBuffer), write(ByteBuffer), and position(long) in a thread safe manner, using external synchronization or other means.