Package org.epics.pvdata.misc
Interface Executor
-
public interface ExecutorSchedule a command to be executed via a thread. An Executor is created via ExecutorFactory.- Author:
- mrk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutorNodecreateNode(Runnable command)Create a node that can be passed to execute.voidexecute(ExecutorNode executorNode)Execute a command via a thread.voidstop()Stop the executor.
-
-
-
Method Detail
-
createNode
ExecutorNode createNode(Runnable command)
Create a node that can be passed to execute.- Parameters:
command- the command to be executed- Returns:
- the ExecutorNode created
-
execute
void execute(ExecutorNode executorNode)
Execute a command via a thread.- Parameters:
executorNode- the ExecutorNode created by createNode.
-
stop
void stop()
Stop the executor.
-
-