bitronix.tm.timer
Class Task

java.lang.Object
  extended by 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

Constructor Summary
protected Task(Date executionTime, TaskScheduler scheduler)
           
 
Method Summary
 int compareTo(Task otherTask)
           
abstract  void execute()
           
 Date getExecutionTime()
           
abstract  Object getObject()
           
protected  TaskScheduler getTaskScheduler()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

protected Task(Date executionTime,
               TaskScheduler scheduler)
Method Detail

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.