Package com.google.common.jimfs
Class JimfsFileChannel.FakeFileLock
java.lang.Object
java.nio.channels.FileLock
com.google.common.jimfs.JimfsFileChannel.FakeFileLock
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
JimfsFileChannel
A file lock that does nothing, since only one JVM process has access to this file system.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFakeFileLock
(AsynchronousFileChannel channel, long position, long size, boolean shared) FakeFileLock
(FileChannel channel, long position, long size, boolean shared) -
Method Summary
-
Field Details
-
valid
-
-
Constructor Details
-
FakeFileLock
-
FakeFileLock
-
-
Method Details
-
isValid
public boolean isValid() -
release
- Specified by:
release
in classFileLock
- Throws:
IOException
-