org.jppf.jca.work
Class JPPFJcaJob
java.lang.Object
org.jppf.jca.work.JPPFJcaJob
- All Implemented Interfaces:
- Runnable, Work
public class JPPFJcaJob
- extends Object
- implements Work
Instances of this class run a set of tasks rpeatedly, with a delay between each set of executions.
- Author:
- Laurent Cohen
|
Constructor Summary |
JPPFJcaJob(List<Runnable> tasks,
long period)
Create a connection iniitializer job with the specified tasks, delay and period. |
|
Method Summary |
void |
release()
Stop this job and release the resources it is using. |
void |
run()
Run all the tasks in sequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPPFJcaJob
public JPPFJcaJob(List<Runnable> tasks,
long period)
- Create a connection iniitializer job with the specified tasks, delay and period.
- Parameters:
tasks - the tasks to run periodically.period - length of time between to executions of the job.
run
public void run()
- Run all the tasks in sequence.
- Specified by:
run in interface Runnable
- See Also:
Runnable.run()
release
public void release()
- Stop this job and release the resources it is using.
- Specified by:
release in interface Work
- See Also:
Work.release()
Copyright © 2005-2010 JPPF Team.