public static class GridCacheDatabaseSharedManager.FileLockHolder extends Object implements AutoCloseable
| Constructor and Description |
|---|
FileLockHolder(String path,
@NotNull GridKernalContext ctx,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes file channel
|
boolean |
isLocked()
Locked or not.
|
void |
release()
Releases file lock
|
void |
tryLock(long lockWaitTimeMillis) |
public FileLockHolder(String path, @NotNull @NotNull GridKernalContext ctx, IgniteLogger log)
path - Path.public void tryLock(long lockWaitTimeMillis)
throws IgniteCheckedException
lockWaitTimeMillis - During which time thread will try capture file lock.IgniteCheckedException - If failed to capture file lock.public boolean isLocked()
public void release()
public void close()
close in interface AutoCloseable
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020