| org.apache.roller.business.runnable.ThreadManager
All known Subclasses: org.apache.roller.business.runnable.ThreadManagerImpl,
ThreadManager | public interface ThreadManager (Code) | | Thread management for executing scheduled and asynchronous tasks.
|
Method Summary | |
public boolean | acquireLock(RollerTask task) Try to aquire a lock for a given RollerTask.
Parameters: task - The RollerTask to aquire the lock for. | public void | executeInBackground(Runnable runnable) Execute runnable in background (asynchronously). | public void | executeInForeground(Runnable runnable) Execute runnable in foreground (synchronously). | public boolean | isLocked(RollerTask task) Is a task currently locked?
Parameters: task - The RollerTask to check the lock state for. | public void | release() Release all resources associated with Roller session. | public boolean | releaseLock(RollerTask task) Try to release the lock for a given RollerTask.
Parameters: task - The RollerTask to release the lock for. | public void | scheduleFixedRateTimerTask(RollerTask task, Date startTime, long intervalMins) Schedule task to run at fixed rate.
Parameters: task - The RollerTask to schedule. Parameters: startTime - The Date at which to start the task. | public void | shutdown() Shutdown. |
MIN_RATE_INTERVAL_MINS | final public static long MIN_RATE_INTERVAL_MINS(Code) | | |
acquireLock | public boolean acquireLock(RollerTask task)(Code) | | Try to aquire a lock for a given RollerTask.
Parameters: task - The RollerTask to aquire the lock for. boolean True if lock was acquired, False otherwise. |
isLocked | public boolean isLocked(RollerTask task)(Code) | | Is a task currently locked?
Parameters: task - The RollerTask to check the lock state for. boolean True if task is locked, False otherwise. |
release | public void release()(Code) | | Release all resources associated with Roller session.
|
releaseLock | public boolean releaseLock(RollerTask task)(Code) | | Try to release the lock for a given RollerTask.
Parameters: task - The RollerTask to release the lock for. boolean True if lock was released (or was not locked), False otherwise. |
scheduleFixedRateTimerTask | public void scheduleFixedRateTimerTask(RollerTask task, Date startTime, long intervalMins)(Code) | | Schedule task to run at fixed rate.
Parameters: task - The RollerTask to schedule. Parameters: startTime - The Date at which to start the task. long The interval (in minutes) at which the task should run. |
shutdown | public void shutdown()(Code) | | Shutdown.
|
|
|