## Uses of Interface
javax.ejb.Timer

- Packages that use Timer
  Package | Description
  --- | ---
  javax.ejb | Contains the Enterprise JavaBeans classes and interfaces that define the contracts between the enterprise bean and its clients and between the enterprise bean and the EJB container.

- - ### Uses of Timer in javax.ejb

    Methods in javax.ejb that return Timer
    Modifier and Type | Method and Description
    --- | ---
    `Timer` | TimerService.`createCalendarTimer(ScheduleExpression schedule)` Create a calendar-based timer based on the input schedule expression.
    `Timer` | TimerService.`createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig)` Create a calendar-based timer based on the input schedule expression.
    `Timer` | TimerService.`createIntervalTimer(Date initialExpiration, long intervalDuration, TimerConfig timerConfig)` Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
    `Timer` | TimerService.`createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig)` Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
    `Timer` | TimerService.`createSingleActionTimer(Date expiration, TimerConfig timerConfig)` Create a single-action timer that expires at a given point in time.
    `Timer` | TimerService.`createSingleActionTimer(long duration, TimerConfig timerConfig)` Create a single-action timer that expires after a specified duration.
    `Timer` | TimerService.`createTimer(Date initialExpiration, long intervalDuration, Serializable info)` Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval.
    `Timer` | TimerService.`createTimer(Date expiration, Serializable info)` Create a single-action timer that expires at a given point in time.
    `Timer` | TimerService.`createTimer(long initialDuration, long intervalDuration, Serializable info)` Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval.
    `Timer` | TimerService.`createTimer(long duration, Serializable info)` Create a single-action timer that expires after a specified duration.
    `Timer` | TimerHandle.`getTimer()` Obtain a reference to the timer represented by this handle.

    Methods in javax.ejb that return types with arguments of type Timer
    Modifier and Type | Method and Description
    --- | ---
    `Collection<Timer>` | TimerService.`getAllTimers()` Returns all active timers associated with the beans in the same module in which the caller bean is packaged.
    `Collection<Timer>` | TimerService.`getTimers()` Returns all active timers associated with this bean.

    Methods in javax.ejb with parameters of type Timer
    Modifier and Type | Method and Description
    --- | ---
    `void` | TimedObject.`ejbTimeout(Timer timer)` Invoked by the EJB container upon timer expiration.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.