public class MapQueryLazyWorker extends GridWorker
isCancelled, log| Constructor and Description |
|---|
MapQueryLazyWorker(String instanceName,
MapQueryLazyWorkerKey key,
IgniteLogger log,
GridMapQueryExecutor exec)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
activeCount() |
void |
awaitStop()
Await worker stop.
|
protected void |
body() |
static MapQueryLazyWorker |
currentWorker() |
MapQueryLazyWorkerKey |
key() |
void |
result(org.apache.ignite.internal.processors.query.h2.twostep.MapQueryResult res) |
void |
stop(boolean nodeStop)
Stop the worker.
|
void |
submit(Runnable task)
Submit task to worker.
|
cancel, cleanup, igniteInstanceName, isCancelled, isDone, join, name, run, runner, toStringpublic MapQueryLazyWorker(@Nullable
String instanceName,
MapQueryLazyWorkerKey key,
IgniteLogger log,
GridMapQueryExecutor exec)
instanceName - Instance name.key - Lazy worker key.log - Logger.exec - Map query executor.protected void body()
throws InterruptedException,
IgniteInterruptedCheckedException
body in class GridWorkerInterruptedExceptionIgniteInterruptedCheckedExceptionpublic void submit(Runnable task)
task - Task to be executed.public MapQueryLazyWorkerKey key()
public void stop(boolean nodeStop)
nodeStop - Node is stopping.public void awaitStop()
public void result(org.apache.ignite.internal.processors.query.h2.twostep.MapQueryResult res)
res - Map query result.@Nullable public static MapQueryLazyWorker currentWorker()
null if call is performed not from lazy worker thread.public static int activeCount()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018