Module org.autogui
Package org.autogui.base.mapping
Class GuiMappingContext.ContextExecutorServiceNoThread
java.lang.Object
org.autogui.base.mapping.GuiMappingContext.ContextExecutorServiceNoThread
- All Implemented Interfaces:
GuiMappingContext.ContextExecutorService
- Enclosing class:
GuiMappingContext
public static class GuiMappingContext.ContextExecutorServiceNoThread
extends Object
implements GuiMappingContext.ContextExecutorService
executor-service without creating threads for tasks
- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timeoutService
-
-
Constructor Details
-
ContextExecutorServiceNoThread
public ContextExecutorServiceNoThread()
-
-
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:
-
execute
Description copied from interface:GuiMappingContext.ContextExecutorService
submit a task guaranteed running; non-threading executors can immediately run it- Specified by:
execute
in interfaceGuiMappingContext.ContextExecutorService
- Parameters:
task
- a task
-
shutdown
public void shutdown()Description copied from interface:GuiMappingContext.ContextExecutorService
shut down the service- Specified by:
shutdown
in interfaceGuiMappingContext.ContextExecutorService
- See Also:
-