dsto.dfc.util
Class TaskDelegate
java.lang.Object
dsto.dfc.util.Scheduler.Task
dsto.dfc.util.TaskDelegate
- All Implemented Interfaces:
- IDelegate, Runnable
public class TaskDelegate
- extends Scheduler.Task
- implements IDelegate
A delegate that calls a wrapped delegate as a Task on the supplied
scheduler
- Author:
- karunard
TaskDelegate
public TaskDelegate(Scheduler scheduler,
IDelegate delegate)
toString
public String toString()
- Overrides:
toString in class Object
run
public void run()
- Specified by:
run in interface Runnable- Specified by:
run in class Scheduler.Task
invoke
public void invoke(Object... args)
throws InvokeException
- Description copied from interface:
IDelegate
- Invoke the delegate with the given argument list.
- Specified by:
invoke in interface IDelegate
- Parameters:
args - The arguments.
- Throws:
InvokeException - if a checked exception occurs.
Copyright © 2008 Commonwealth of Australia