bitronix.tm.timer
Class Task
java.lang.Object
bitronix.tm.timer.Task
- All Implemented Interfaces:
- Comparable<Task>
- Direct Known Subclasses:
- PoolShrinkingTask, RecoveryTask, TransactionTimeoutTask
public abstract class Task
- extends Object
- implements Comparable<Task>
Asbtract superclass of all timed tasks.
- Author:
- lorban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Task
protected Task(Date executionTime,
TaskScheduler scheduler)
getExecutionTime
public Date getExecutionTime()
getTaskScheduler
protected TaskScheduler getTaskScheduler()
compareTo
public int compareTo(Task otherTask)
- Specified by:
compareTo
in interface Comparable<Task>
getObject
public abstract Object getObject()
execute
public abstract void execute()
throws TaskException
- Throws:
TaskException
Copyright © 2006-2013 Bitronix Software. All Rights Reserved.