Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## commonj.timers
Interface TimerListener

All Known Subinterfaces:
  CancelTimerListener, StopTimerListener

    public interface TimerListener

Objects that implement this interface and are supplied to one of the `TimerManager#schedule` methods can receieve timer notifications. When the timer expires, the `TimerListener.timerExpired(commonj.timers.Timer)` method is called and the Timer object that has expired is provided.

When the timer expires, the `TimerListener.timerExpired(commonj.timers.Timer)` method is invoked. The Timer object passed in is the Timer that was returned when the TimerListener was originally scheduled. If the TimerListener was scheduled with a period, then the same Timer object is passed to the TimerListener on each invocation.

The J2EE context active on the thread during TimerListener scheduling will be applied to the timerExpired method. See `TimerManager` for details.

Since:
  1.0
See Also:
  `Timer`, `TimerManager`

Method Summary
`void` | `timerExpired(Timer timer)` This method is called when a Timer expires and will run with the J2EE context of the scheduler.

Method Detail

### timerExpired

    void timerExpired(Timer timer)

  This method is called when a Timer expires and will run with the J2EE context of the scheduler.

  Parameters:
    `timer` - the Timer object that expired.
  Since:
    1.0

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD