T - the lock target typepublic class LocalFileLockObject<T> extends Object implements LockObject<T>
| Constructor and Description |
|---|
LocalFileLockObject(T target,
File lockFile,
RandomAccessFile fd,
FileLock lockEntity)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
File |
getLockFile()
Returns the local lock file.
|
T |
getTarget()
Returns the lock target.
|
String |
toString() |
public LocalFileLockObject(T target, File lockFile, RandomAccessFile fd, FileLock lockEntity)
target - lock targetlockFile - the lock filefd - the lock file descriptorlockEntity - the internal lock objectpublic T getTarget()
LockObjectgetTarget in interface LockObject<T>public File getLockFile()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.