-
Methods in java.nio.channels that return FileLock
| Modifier and Type |
Method |
Description |
FileLock |
FileChannel.lock() |
Obtains an exclusive lock on this file.
|
abstract FileLock |
FileChannel.lock(long position,
long size,
boolean shared) |
Obtains a lock on a specified region of the file.
|
FileLock |
FileChannel.tryLock() |
Attempts to acquire an exclusive lock on this file without blocking.
|
abstract FileLock |
FileChannel.tryLock(long position,
long size,
boolean shared) |
Attempts to acquire an exclusive lock on this file without blocking.
|