protected static class FileLock.GlobalLock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.nio.channels.FileChannel |
channel |
protected java.io.RandomAccessFile |
file |
protected java.nio.channels.FileLock |
lock |
protected int |
refCount |
Constructor and Description |
---|
GlobalLock(java.io.File target,
boolean shared) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRef()
Increase refCount.
|
int |
release()
Increase refCount.
|
protected void |
releaseFile()
Unlock a lock.
|
protected java.nio.channels.FileLock lock
protected java.io.RandomAccessFile file
protected java.nio.channels.FileChannel channel
protected int refCount
Copyright © 2013 Dassault Systèmes, All Rights Reserved.