|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.timer.ThreadPooledTimer
public class ThreadPooledTimer
| Constructor Summary | |
|---|---|
ThreadPooledTimer()
|
|
ThreadPooledTimer(ExecutorTaskFactory executorTaskFactory,
WorkerPersistence workerPersistence,
Executor executor,
TransactionManager transactionManager)
|
|
| Method Summary | |
|---|---|
void |
cancelTimerTasks(Collection ids)
Called when client, eg. ejb container, is stopped and needs to cancel its timertasks without affecting persisted timer data. |
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
Collection |
getIdsByKey(String key,
Object userId)
|
WorkInfo |
getWorkInfo(Long id)
|
Collection |
playback(String key,
UserTaskFactory userTaskFactory)
|
WorkInfo |
schedule(String key,
UserTaskFactory userTaskFactory,
Object userInfo,
long delay,
long period,
Object userId)
|
WorkInfo |
schedule(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
Date time)
|
WorkInfo |
schedule(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
Date firstTime,
long period)
|
WorkInfo |
schedule(UserTaskFactory userTaskFactory,
String key,
Object userId,
Object userInfo,
long delay)
|
WorkInfo |
scheduleAtFixedRate(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
Date firstTime,
long period)
|
WorkInfo |
scheduleAtFixedRate(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
long delay,
long period)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPooledTimer()
public ThreadPooledTimer(ExecutorTaskFactory executorTaskFactory,
WorkerPersistence workerPersistence,
Executor executor,
TransactionManager transactionManager)
| Method Detail |
|---|
public void doStart()
throws Exception
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed statepublic void doStop()
GBeanLifecycle
doStop in interface GBeanLifecyclepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecycle
public WorkInfo schedule(UserTaskFactory userTaskFactory,
String key,
Object userId,
Object userInfo,
long delay)
throws PersistenceException,
RollbackException,
SystemException
schedule in interface PersistentTimerPersistenceException
RollbackException
SystemException
public WorkInfo schedule(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
Date time)
throws PersistenceException,
RollbackException,
SystemException
schedule in interface PersistentTimerPersistenceException
RollbackException
SystemException
public WorkInfo schedule(String key,
UserTaskFactory userTaskFactory,
Object userInfo,
long delay,
long period,
Object userId)
throws PersistenceException,
RollbackException,
SystemException
schedule in interface PersistentTimerPersistenceException
RollbackException
SystemException
public WorkInfo schedule(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
Date firstTime,
long period)
throws PersistenceException,
RollbackException,
SystemException
schedule in interface PersistentTimerPersistenceException
RollbackException
SystemException
public WorkInfo scheduleAtFixedRate(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
long delay,
long period)
throws PersistenceException,
RollbackException,
SystemException
scheduleAtFixedRate in interface PersistentTimerPersistenceException
RollbackException
SystemException
public WorkInfo scheduleAtFixedRate(String key,
UserTaskFactory userTaskFactory,
Object userId,
Object userInfo,
Date firstTime,
long period)
throws PersistenceException,
RollbackException,
SystemException
scheduleAtFixedRate in interface PersistentTimerPersistenceException
RollbackException
SystemException
public Collection playback(String key,
UserTaskFactory userTaskFactory)
throws PersistenceException
playback in interface PersistentTimerPersistenceException
public Collection getIdsByKey(String key,
Object userId)
throws PersistenceException
getIdsByKey in interface PersistentTimerPersistenceExceptionpublic WorkInfo getWorkInfo(Long id)
getWorkInfo in interface PersistentTimerpublic void cancelTimerTasks(Collection ids)
cancelTimerTasks in interface PersistentTimerids - list of ids to have their corresponding workInfo timertasks cancelled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||