public static class GridCacheDatabaseSharedManager.FileLockHolder extends Object implements AutoCloseable
| Constructor and Description |
|---|
FileLockHolder(String path,
GridKernalContext ctx,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes file channel
|
void |
release()
Releases file lock
|
void |
tryLock(long lockWaitTimeMillis) |
public FileLockHolder(String path, @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 void release()
public void close()
close in interface AutoCloseable
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018