|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.acelogger.execution.manager.EmptyExecutorManager
public class EmptyExecutorManager

A implementation of ExecutorManager that do nothing.
| Constructor Summary | |
|---|---|
EmptyExecutorManager(String identifier)
Constructs a new EmptyExecutorManager with the supplied identifier. |
|
| 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. |
String |
getIdentifier()
Gets a String that identifies this object. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyExecutorManager(String identifier)
identifier - A string that identifies this executor manager.| Method Detail |
|---|
public final String getIdentifier()
getIdentifier in interface Identifiablepublic void execute(Runnable command)
execute in interface ExecutorManagercommand - The task to be executed.public void executeAll(List<Runnable> commands)
executeAll in interface ExecutorManagercommands - A list of tasks to be executed.public boolean isTerminated()
isTerminated in interface ExecutorManagerpublic boolean orderProperShutdown()
orderProperShutdown in interface ExecutorManagerpublic boolean awaitTermination(long terminationTimeout)
awaitTermination in interface ExecutorManagerterminationTimeout - The maximum time (in ms) to wait for remaining tasks to execute.
ExecutorManager.orderProperShutdown()public List<Runnable> terminateAndRetrieveTasks()
terminateAndRetrieveTasks in interface ExecutorManagerExecutorManager.orderProperShutdown(),
ExecutorManager.awaitTermination(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||