Uses of Class
java.nio.channels.FileLock

Packages that use FileLock
Package Description
java.nio.channels  
  • Uses of FileLock in java.nio.channels

    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.