| java.lang.Object java.nio.channels.FileLock org.apache.harmony.nio.internal.FileLockImpl
FileLockImpl | final class FileLockImpl extends FileLock (Code) | | The concrete implementation of an NIO file lock object.
|
Constructor Summary | |
public | FileLockImpl(FileChannel channel, long position, long size, boolean shared) Answers a new file lock object with the given parameters. |
Method Summary | |
public boolean | isValid() Tests to see if the lock is valid. | public void | release() Releases the file lock on the channel that acquired it. |
FileLockImpl | public FileLockImpl(FileChannel channel, long position, long size, boolean shared)(Code) | | Answers a new file lock object with the given parameters.
Parameters: channel - the file channel hosting the lock. Parameters: position - the start position of the lock, in bytes Parameters: size - the length of the lock, in bytes Parameters: shared - whether this lock is shared (true) or exclusive (false) |
isValid | public boolean isValid()(Code) | | Tests to see if the lock is valid. A lock can be invalidated if the
channel it is acquired on is closed or if it is released. (non-Javadoc)
See Also: java.nio.channels.FileLock.isValid |
|
|