| Modifier and Type | Method and Description |
|---|---|
| public Timer | Returns: the newly created Timer.a schedule expression describing the timeouts
for this timer. schedule)Create a calendar-based timer based on the input schedule expression. |
| public Timer | Returns: the newly created Timer.a schedule expression describing the timeouts for this timer. schedule, TimerConfig timer configuration. timerConfig)Create a calendar-based timer based on the input schedule expression. |
| public Timer | Returns: the newly created Timer.The number of milliseconds that must elapse
before the first timer expiration notification. initialDuration, long The number of milliseconds that must elapse
between timer expiration notifications. Expiration notifications are
scheduled relative to the time of the first expiration. If expiration
is delayed (e.g. due to the interleaving of other method calls on the
bean), two or more expiration notifications may occur in close
succession to "catch up". intervalDuration, TimerConfig timer configuration timerConfig)Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval. |
| public Timer | Returns: the newly created Timer.the point in time at which the first timer
expiration must occur. initialExpiration, long the number of milliseconds that must elapse
between timer expiration notifications. Expiration notifications are
scheduled relative to the time of the first expiration. If expiration
is delayed (e.g. due to the interleaving of other method calls on the
bean), two or more expiration notifications may occur in close
succession to "catch up". intervalDuration, TimerConfig timer configuration. timerConfig)Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval. |
| public Timer | Returns: the newly created Timer.the number of milliseconds that must elapse before
the timer expires. duration, TimerConfig timer configuration. timerConfig)Create a single-action timer that expires after a specified duration. |
| public Timer | Returns: the newly created Timer.the point in time at which the timer must expire. expiration, TimerConfig timer configuration. timerConfig)Create a single-action timer that expires at a given point in time. |
| public Timer | Returns: the newly created Timer.the number of milliseconds that must elapse before
the timer expires. duration, Serializable application information to be delivered along
with the timer expiration notification. This can be null. info)Create a single-action timer that expires after a specified duration. |
| public Timer | Returns: the newly created Timer.The number of milliseconds that must elapse
before the first timer expiration notification. initialDuration, long The number of milliseconds that must elapse
between timer expiration notifications. Expiration notifications are
scheduled relative to the time of the first expiration. If expiration
is delayed (e.g. due to the interleaving of other method calls on the
bean), two or more expiration notifications may occur in close
succession to "catch up". intervalDuration, Serializable application information to be delivered along
with the timer expiration. This can be null. info)Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval. |
| public Timer | Returns: the newly created Timer.The point in time at which the timer must expire. expiration, Serializable application information to be delivered along
with the timer expiration notification. This can be null. info)Create a single-action timer that expires at a given point in time. |
| public Timer | Returns: the newly created Timer.the point in time at which the first timer
expiration must occur. initialExpiration, long the number of milliseconds that must elapse
between timer expiration notifications. Expiration notifications are
scheduled relative to the time of the first expiration. If expiration
is delayed (e.g. due to the interleaving of other method calls on the
bean), two or more expiration notifications may occur in close
succession to "catch up". intervalDuration, Serializable application information to be delivered along
with the timer expiration. This can be null. info)Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval. |
| public Collection | Returns: a collection ofjavax.ejb.Timer objects.Returns all active timers associated with the beans in the same module in which the caller bean is packaged. |
| public Collection | Returns: a collection ofjavax.ejb.Timer objects.Returns all active timers associated with this bean. |
| createCalendarTimer | back to summary |
|---|---|
| public Timer createCalendarTimer(ScheduleExpression schedule) throws IllegalArgumentException, IllegalStateException, EJBException Create a calendar-based timer based on the input schedule expression.
| |
| createCalendarTimer | back to summary |
|---|---|
| public Timer createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException Create a calendar-based timer based on the input schedule expression.
| |
| createIntervalTimer | back to summary |
|---|---|
| public Timer createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
| |
| createIntervalTimer | back to summary |
|---|---|
| public Timer createIntervalTimer(Date initialExpiration, long intervalDuration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
| |
| createSingleActionTimer | back to summary |
|---|---|
| public Timer createSingleActionTimer(long duration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException Create a single-action timer that expires after a specified duration.
| |
| createSingleActionTimer | back to summary |
|---|---|
| public Timer createSingleActionTimer(Date expiration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException Create a single-action timer that expires at a given point in time.
| |
| createTimer | back to summary |
|---|---|
| public Timer createTimer(long duration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException Create a single-action timer that expires after a specified duration.
| |
| createTimer | back to summary |
|---|---|
| public Timer createTimer(long initialDuration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
| |
| createTimer | back to summary |
|---|---|
| public Timer createTimer(Date expiration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException Create a single-action timer that expires at a given point in time.
| |
| createTimer | back to summary |
|---|---|
| public Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
| |
| getAllTimers | back to summary |
|---|---|
| public Collection Returns all active timers associated with the beans in the same module in which the caller bean is packaged. These include both the programmatically-created timers and the automatically-created timers.
| |
| getTimers | back to summary |
|---|---|
| public Collection Returns all active timers associated with this bean. These include both the programmatically-created timers and the automatically-created timers.
| |