org.apache.geronimo.timer
Interface PersistentTimer

All Known Implementing Classes:
JDBCStoreThreadPooledNonTransactionalTimer, JDBCStoreThreadPooledTransactionalTimer, ThreadPooledTimer, VMStoreThreadPooledNonTransactionalTimer, VMStoreThreadPooledTransactionalTimer

public interface PersistentTimer


Method Summary
 void cancelTimerTasks(Collection ids)
           
 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)
           
 

Method Detail

schedule

WorkInfo schedule(UserTaskFactory userTaskFactory,
                  String key,
                  Object userId,
                  Object userInfo,
                  long delay)
                  throws PersistenceException,
                         RollbackException,
                         SystemException
Throws:
PersistenceException
RollbackException
SystemException

schedule

WorkInfo schedule(String key,
                  UserTaskFactory userTaskFactory,
                  Object userId,
                  Object userInfo,
                  Date time)
                  throws PersistenceException,
                         RollbackException,
                         SystemException
Throws:
PersistenceException
RollbackException
SystemException

schedule

WorkInfo schedule(String key,
                  UserTaskFactory userTaskFactory,
                  Object userInfo,
                  long delay,
                  long period,
                  Object userId)
                  throws PersistenceException,
                         RollbackException,
                         SystemException
Throws:
PersistenceException
RollbackException
SystemException

schedule

WorkInfo schedule(String key,
                  UserTaskFactory userTaskFactory,
                  Object userId,
                  Object userInfo,
                  Date firstTime,
                  long period)
                  throws PersistenceException,
                         RollbackException,
                         SystemException
Throws:
PersistenceException
RollbackException
SystemException

scheduleAtFixedRate

WorkInfo scheduleAtFixedRate(String key,
                             UserTaskFactory userTaskFactory,
                             Object userId,
                             Object userInfo,
                             long delay,
                             long period)
                             throws PersistenceException,
                                    RollbackException,
                                    SystemException
Throws:
PersistenceException
RollbackException
SystemException

scheduleAtFixedRate

WorkInfo scheduleAtFixedRate(String key,
                             UserTaskFactory userTaskFactory,
                             Object userId,
                             Object userInfo,
                             Date firstTime,
                             long period)
                             throws PersistenceException,
                                    RollbackException,
                                    SystemException
Throws:
PersistenceException
RollbackException
SystemException

playback

Collection playback(String key,
                    UserTaskFactory userTaskFactory)
                    throws PersistenceException
Throws:
PersistenceException

getIdsByKey

Collection getIdsByKey(String key,
                       Object userId)
                       throws PersistenceException
Throws:
PersistenceException

getWorkInfo

WorkInfo getWorkInfo(Long id)

cancelTimerTasks

void cancelTimerTasks(Collection ids)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.