|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutorManager
A interface providing task execution abstraction.
Method Summary | |
---|---|
boolean |
awaitTermination(long terminationTimeout)
Waits the execution of pending tasks in this executor manager. |
void |
execute(Runnable command)
Executes the given command within this executor. |
void |
executeAll(List<Runnable> commands)
Executes the given commands within this executor, one by one. |
boolean |
isTerminated()
Returns true if this executor manager has ended its execution scheduling. |
boolean |
orderProperShutdown()
Orders the proper shutdown of this executor manager, this is accomplished in most of the implementations by waiting all pending tasks or a given timeout. |
List<Runnable> |
terminateAndRetrieveTasks()
Terminates this executor manager, return a list of tasks that were not executed after a proper shutdown was ordered. |
Methods inherited from interface net.sourceforge.acelogger.Identifiable |
---|
getIdentifier |
Method Detail |
---|
boolean orderProperShutdown()
boolean awaitTermination(long terminationTimeout)
terminationTimeout
- The maximum time (in ms) to wait for remaining tasks to execute.
orderProperShutdown()
List<Runnable> terminateAndRetrieveTasks()
orderProperShutdown()
,
awaitTermination(long)
boolean isTerminated()
void execute(Runnable command)
command
- The task to be executed.void executeAll(List<Runnable> commands)
commands
- A list of tasks to be executed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |