|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadExecutor
Allows different strategies for scheduling threads. The initialize()
method is required to be called before the first call to
execute(Thread)
. The Thread containing the work to be performed is
passed to execute and the work is scheduled by the underlying implementation.
Method Summary | |
---|---|
void |
execute(Thread thread)
Submit a task for execution |
void |
initialize()
Initialize any state prior to calling execute(Thread) |
Method Detail |
---|
void execute(Thread thread)
thread
- the thread to executevoid initialize()
execute(Thread)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |