org.apache.openejb.core.timer
Class TimerServiceImpl

java.lang.Object
  extended by org.apache.openejb.core.timer.TimerServiceImpl
All Implemented Interfaces:
javax.ejb.TimerService

public class TimerServiceImpl
extends Object
implements javax.ejb.TimerService


Constructor Summary
TimerServiceImpl(EjbTimerService ejbTimerService, Object primaryKey, Method ejbTimeout)
           
 
Method Summary
 javax.ejb.Timer createCalendarTimer(javax.ejb.ScheduleExpression scheduleExpression)
           
 javax.ejb.Timer createCalendarTimer(javax.ejb.ScheduleExpression scheduleExpression, javax.ejb.TimerConfig timerConfig)
           
 javax.ejb.Timer createIntervalTimer(Date initialExpiration, long lintervalDuration, javax.ejb.TimerConfig timerConfig)
           
 javax.ejb.Timer createIntervalTimer(long initialDuration, long intervalDuration, javax.ejb.TimerConfig timerConfig)
           
 javax.ejb.Timer createSingleActionTimer(Date expiration, javax.ejb.TimerConfig timerConfig)
           
 javax.ejb.Timer createSingleActionTimer(long duration, javax.ejb.TimerConfig timerConfig)
           
 javax.ejb.Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info)
           
 javax.ejb.Timer createTimer(Date expiration, Serializable info)
           
 javax.ejb.Timer createTimer(long initialDuration, long intervalDuration, Serializable info)
           
 javax.ejb.Timer createTimer(long duration, Serializable info)
           
 Collection<javax.ejb.Timer> getTimers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerServiceImpl

public TimerServiceImpl(EjbTimerService ejbTimerService,
                        Object primaryKey,
                        Method ejbTimeout)
Method Detail

createTimer

public javax.ejb.Timer createTimer(Date initialExpiration,
                                   long intervalDuration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Specified by:
createTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createTimer

public javax.ejb.Timer createTimer(Date expiration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Specified by:
createTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createTimer

public javax.ejb.Timer createTimer(long initialDuration,
                                   long intervalDuration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Specified by:
createTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createTimer

public javax.ejb.Timer createTimer(long duration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Specified by:
createTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

getTimers

public Collection<javax.ejb.Timer> getTimers()
                                      throws IllegalStateException,
                                             javax.ejb.EJBException
Specified by:
getTimers in interface javax.ejb.TimerService
Throws:
IllegalStateException
javax.ejb.EJBException

createSingleActionTimer

public javax.ejb.Timer createSingleActionTimer(long duration,
                                               javax.ejb.TimerConfig timerConfig)
                                        throws IllegalArgumentException,
                                               IllegalStateException,
                                               javax.ejb.EJBException
Specified by:
createSingleActionTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createSingleActionTimer

public javax.ejb.Timer createSingleActionTimer(Date expiration,
                                               javax.ejb.TimerConfig timerConfig)
                                        throws IllegalArgumentException,
                                               IllegalStateException,
                                               javax.ejb.EJBException
Specified by:
createSingleActionTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createIntervalTimer

public javax.ejb.Timer createIntervalTimer(long initialDuration,
                                           long intervalDuration,
                                           javax.ejb.TimerConfig timerConfig)
                                    throws IllegalArgumentException,
                                           IllegalStateException,
                                           javax.ejb.EJBException
Specified by:
createIntervalTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createIntervalTimer

public javax.ejb.Timer createIntervalTimer(Date initialExpiration,
                                           long lintervalDuration,
                                           javax.ejb.TimerConfig timerConfig)
                                    throws IllegalArgumentException,
                                           IllegalStateException,
                                           javax.ejb.EJBException
Specified by:
createIntervalTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createCalendarTimer

public javax.ejb.Timer createCalendarTimer(javax.ejb.ScheduleExpression scheduleExpression)
                                    throws IllegalArgumentException,
                                           IllegalStateException,
                                           javax.ejb.EJBException
Specified by:
createCalendarTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createCalendarTimer

public javax.ejb.Timer createCalendarTimer(javax.ejb.ScheduleExpression scheduleExpression,
                                           javax.ejb.TimerConfig timerConfig)
                                    throws IllegalArgumentException,
                                           IllegalStateException,
                                           javax.ejb.EJBException
Specified by:
createCalendarTimer in interface javax.ejb.TimerService
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.