Package org.quartz.spi
Interface ThreadExecutor
-
- All Known Implementing Classes:
DefaultThreadExecutor
,WorkManagerThreadExecutor
public interface ThreadExecutor
Allows different strategies for scheduling threads. Theinitialize()
method is required to be called before the first call toexecute(Thread)
. The Thread containing the work to be performed is passed to execute and the work is scheduled by the underlying implementation.- Author:
- matt.accola
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(java.lang.Thread thread)
Submit a task for executionvoid
initialize()
Initialize any state prior to callingexecute(Thread)
-
-
-
Method Detail
-
execute
void execute(java.lang.Thread thread)
Submit a task for execution- Parameters:
thread
- the thread to execute
-
initialize
void initialize()
Initialize any state prior to callingexecute(Thread)
-
-