Interface ThreadLocalAwareExecutor
-
- All Known Implementing Classes:
ThreadLocalAwareExecutorImpl
public interface ThreadLocalAwareExecutor
- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(Job job)
void
processComplete(ProcessState processState)
Flags theProcessState
as complete.void
runInContext(FunctionState function, FunctionLoop loop)
Runs theProcessState
within context to enable theThreadLocal
instances of the currentThread
to be available.
-
-
-
Method Detail
-
runInContext
void runInContext(FunctionState function, FunctionLoop loop)
Runs the
ProcessState
within context to enable theThreadLocal
instances of the currentThread
to be available.This will block the current
Thread
until theProcessState
and all subsequentProcessState
instances invoked by the currentThread
are complete.- Parameters:
function
- InitialFunctionState
of theProcessState
.loop
-FunctionLoop
.
-
processComplete
void processComplete(ProcessState processState)
Flags theProcessState
as complete.- Parameters:
processState
-ProcessState
.
-
-