Package io.roastedroot.zerofs
Class ZeroFsFileChannel.FakeFileLock
- java.lang.Object
-
- java.nio.channels.FileLock
-
- io.roastedroot.zerofs.ZeroFsFileChannel.FakeFileLock
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- ZeroFsFileChannel
static final class ZeroFsFileChannel.FakeFileLock extends java.nio.channels.FileLockA file lock that does nothing, since only one JVM process has access to this file system.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicBooleanvalid
-
Constructor Summary
Constructors Constructor Description FakeFileLock(java.nio.channels.AsynchronousFileChannel channel, long position, long size, boolean shared)FakeFileLock(java.nio.channels.FileChannel channel, long position, long size, boolean shared)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid()voidrelease()
-