Class Daemon.RunnableDelegate
java.lang.Object
org.simpleframework.common.thread.Daemon.RunnableDelegate
- All Implemented Interfaces:
Runnable
- Enclosing class:
Daemon
The
RunnableDelegate object is used to actually
invoke the run method. A delegate is used to ensure
that once the task has finished it is inactive so that it can
be started again with a new thread.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRunnableDelegate(Runnable task) Constructor for theRunnableDelegateobject. -
Method Summary
-
Field Details
-
task
This is the runnable that is to be executed.
-
-
Constructor Details
-
RunnableDelegate
Constructor for theRunnableDelegateobject. The delegate requires the actual runnable that is to be executed. As soon as the task has finished the runner becomes inactive.- Parameters:
task- this is the task to be executed
-
-
Method Details