Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.3)

Part Number E13941-03

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

Copyright 1996, 2010, 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.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.3 API Reference
11g Release 1 (10.3.3)

Part Number E13941-03