Package com.google.common.jimfs
Class JimfsFileChannel.FakeFileLock
- java.lang.Object
-
- java.nio.channels.FileLock
-
- com.google.common.jimfs.JimfsFileChannel.FakeFileLock
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- JimfsFileChannel
static final class JimfsFileChannel.FakeFileLock extends java.nio.channels.FileLock
A 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.AtomicBoolean
valid
-
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 boolean
isValid()
void
release()
-