| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | isValid()
Implements abstract java. Tells whether or not this lock is valid. |
| public synchronized void |
| invalid | back to summary |
|---|---|
| private volatile boolean invalid | |
| FileLockImpl | back to summary |
|---|---|
| pack-priv FileLockImpl(FileChannel channel, long position, long size, boolean shared) | |
| FileLockImpl | back to summary |
|---|---|
| pack-priv FileLockImpl(AsynchronousFileChannel channel, long position, long size, boolean shared) | |
| invalidate | back to summary |
|---|---|
| pack-priv void invalidate() | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements abstract java. Doc from java. Tells whether or not this lock is valid. A lock object remains valid until it is released or the associated file channel is closed, whichever comes first. | |
| release | back to summary |
|---|---|
| public synchronized void release() throws IOException Implements abstract java. Doc from java. Releases this lock. If this lock object is valid then invoking this method releases the lock and renders the object invalid. If this lock object is invalid then invoking this method has no effect.
| |