Documentation for this section has not yet been entered.
Type Reason Java.Nio.Channels.ClosedChannelException if the file channel is closed. Java.Nio.Channels.OverlappingFileLockException if a lock already exists that overlaps this lock request or another thread is waiting to acquire a lock that will overlap with this request. Java.IO.IOException if any I/O error occurs.
Attempts to acquire an exclusive lock on this file without blocking.
This is a convenience method for attempting to acquire a maximum length lock on the file. It is equivalent to: fileChannel.tryLock(0L, Long.MAX_VALUE, false);
The method returns null if the acquisition would result in an overlapped lock with another OS process.