|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.hiveutils.service.impl.AsynchronousTaskPerformerImpl
public class AsynchronousTaskPerformerImpl
Implementation of the Asynchroneous task performer service.
Constructor Summary | |
---|---|
AsynchronousTaskPerformerImpl(org.apache.commons.logging.Log logger,
long waitTime,
int minTasks)
|
Method Summary | |
---|---|
void |
addTask(java.lang.Runnable task)
Add a task to be executed asynchroneously. |
void |
executeNow()
This method forces execution of all pending tasks. |
void |
executeNowAndWait()
This method forces execution of all pending tasks. |
void |
registryDidShutdown()
|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsynchronousTaskPerformerImpl(org.apache.commons.logging.Log logger, long waitTime, int minTasks)
Method Detail |
---|
public void registryDidShutdown()
registryDidShutdown
in interface org.apache.hivemind.events.RegistryShutdownListener
public void addTask(java.lang.Runnable task)
AsynchronousTaskPerformer
addTask
in interface AsynchronousTaskPerformer
task
- task to be added to the list of asynchroneous taskspublic void executeNowAndWait()
AsynchronousTaskPerformer
executeNowAndWait
in interface AsynchronousTaskPerformer
public void executeNow()
AsynchronousTaskPerformer
executeNow
in interface AsynchronousTaskPerformer
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |