Module org.autogui
Package org.autogui.base.mapping
Class GuiMappingContext.ContextExecutorServiceForkJoin
java.lang.Object
org.autogui.base.mapping.GuiMappingContext.ContextExecutorServiceForkJoin
- All Implemented Interfaces:
GuiMappingContext.ContextExecutorService
- Enclosing class:
GuiMappingContext
public static class GuiMappingContext.ContextExecutorServiceForkJoin
extends Object
implements GuiMappingContext.ContextExecutorService
a
ForkJoinPool
based executor:
the fork-join pool have ability of work-stealing:
i.e. a running task in the pool can invoke another new task
which immediately runs in the same context to the caller task of the pool
with "stealing" the running of the caller task.- Since:
- 1.2
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.autogui.base.mapping.GuiMappingContext.ContextExecutorService
execute
-
Field Details
-
pool
-
-
Constructor Details
-
ContextExecutorServiceForkJoin
-
ContextExecutorServiceForkJoin
public ContextExecutorServiceForkJoin()
-
-
Method Details
-
submit
Description copied from interface:GuiMappingContext.ContextExecutorService
submit a task v- Specified by:
submit
in interfaceGuiMappingContext.ContextExecutorService
- Type Parameters:
V
- the returned type of the task- Parameters:
v
- submitted task- Returns:
- future of the task
- See Also:
-
shutdown
public void shutdown()Description copied from interface:GuiMappingContext.ContextExecutorService
shut down the service- Specified by:
shutdown
in interfaceGuiMappingContext.ContextExecutorService
- See Also:
-