|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
bitronix.tm.timer.TaskScheduler
public class TaskScheduler
Timed tasks service.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
TaskScheduler()
|
|
| Method Summary | |
|---|---|
void |
cancelPoolShrinking(XAPool xaPool)
Cancel the task that will tell a XA pool to close idle connections. |
void |
cancelRecovery(Recoverer recoverer)
Cancel the task that will run background recovery at the specified date. |
void |
cancelTransactionTimeout(BitronixTransaction transaction)
Cancel the task that will mark the transaction as timed out at the specified date. |
int |
countTasksQueued()
Get the amount of tasks currently queued. |
void |
run()
|
void |
schedulePoolShrinking(XAPool xaPool)
Schedule a task that will tell a XA pool to close idle connections. |
void |
scheduleRecovery(Recoverer recoverer,
Date executionTime)
Schedule a task that will run background recovery at the specified date. |
void |
scheduleTransactionTimeout(BitronixTransaction transaction,
Date executionTime)
Schedule a task that will mark the transaction as timed out at the specified date. |
void |
shutdown()
Shutdown the service and free all held resources. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaskScheduler()
| Method Detail |
|---|
public int countTasksQueued()
public void shutdown()
Service
shutdown in interface Service
public void scheduleTransactionTimeout(BitronixTransaction transaction,
Date executionTime)
transaction - the transaction to mark as timeout.executionTime - the date at which the transaction must be marked.public void cancelTransactionTimeout(BitronixTransaction transaction)
transaction - the transaction to mark as timeout.
public void scheduleRecovery(Recoverer recoverer,
Date executionTime)
recoverer - the recovery implementation to use.executionTime - the date at which the transaction must be marked.public void cancelRecovery(Recoverer recoverer)
recoverer - the recovery implementation to use.public void schedulePoolShrinking(XAPool xaPool)
XAPool.getNextShrinkDate().
xaPool - the XA pool to notify.public void cancelPoolShrinking(XAPool xaPool)
xaPool - the XA pool to notify.public void run()
run in interface Runnablerun in class Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||