org.ow2.easybeans.api
Interface EZBTimerService

All Superinterfaces:
javax.ejb.TimerService

public interface EZBTimerService
extends javax.ejb.TimerService

Defines the EasyBeans timer service. It has some methods used to create timers for @Schedule annotated methods

Author:
Florent Benoit

Method Summary
 javax.ejb.Timer createCalendarTimer(javax.ejb.ScheduleExpression schedule, javax.ejb.TimerConfig timerConfig, IMethodInfo methodInfo)
          Create a calendar-based timer based on the input schedule expression.
 
Methods inherited from interface javax.ejb.TimerService
createTimer, createTimer, createTimer, createTimer, getTimers
 

Method Detail

createCalendarTimer

javax.ejb.Timer createCalendarTimer(javax.ejb.ScheduleExpression schedule,
                                    javax.ejb.TimerConfig timerConfig,
                                    IMethodInfo methodInfo)
                                    throws IllegalArgumentException,
                                           IllegalStateException,
                                           javax.ejb.EJBException
Create a calendar-based timer based on the input schedule expression.

Parameters:
schedule - a schedule expression describing the timeouts for this timer.
timerConfig - timer configuration.
Returns:
the newly created Timer.
Throws:
IllegalArgumentException - If Schedule represents an invalid schedule expression.
IllegalStateException - If this method is invoked while the instance is in a state that does not allow access to this method.
javax.ejb.EJBException - If this method could not complete due to a system-level failure.
Since:
EJB 3.1 version.


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.