protected static class FilePageStoreManager.LongOperationAsyncExecutor extends Object
ReadWriteLock
to provide such synchronization scenario.| Constructor and Description |
|---|
LongOperationAsyncExecutor(String igniteInstanceName,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
afterAsyncCompletion(IgniteOutClosure<T> closure)
Executes closure that can't run in parallel with long operation that is executed by
async(java.lang.Runnable). |
void |
async(Runnable runnable)
Executes long operation in dedicated thread.
|
void |
awaitAsyncTaskCompletion(boolean cancel)
Cancels async tasks.
|
public LongOperationAsyncExecutor(String igniteInstanceName, IgniteLogger log)
public void async(Runnable runnable)
runnable - long operationpublic <T> T afterAsyncCompletion(IgniteOutClosure<T> closure)
async(java.lang.Runnable). Uses read lock as such closures can run in parallel with
each other.T - return type.closure - closure.closure.public void awaitAsyncTaskCompletion(boolean cancel)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021