| Constructor and Description |
|---|
TaskScheduler() |
| Modifier and Type | Method and Description |
|---|---|
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,
java.util.Date executionTime)
Schedule a task that will run background recovery at the specified date.
|
void |
scheduleTransactionTimeout(BitronixTransaction transaction,
java.util.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.
|
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, yieldpublic int countTasksQueued()
public void shutdown()
Servicepublic void scheduleTransactionTimeout(BitronixTransaction transaction, java.util.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, java.util.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 java.lang.Runnablerun in class java.lang.ThreadCopyright © 2006-2019 Bitronix Software. All Rights Reserved.