Spring Framework

org.springframework.scheduling.commonj
Class DelegatingTimerListener

java.lang.Object
  extended by org.springframework.scheduling.commonj.DelegatingTimerListener
All Implemented Interfaces:
commonj.timers.TimerListener

public class DelegatingTimerListener
extends java.lang.Object
implements commonj.timers.TimerListener

Simple TimerListener adapter that delegates to a given Runnable.

Since:
2.0
Author:
Juergen Hoeller
See Also:
TimerListener, Runnable

Constructor Summary
DelegatingTimerListener(java.lang.Runnable runnable)
          Create a new DelegatingTimerListener.
 
Method Summary
 void timerExpired(commonj.timers.Timer timer)
          Delegates execution to the underlying Runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingTimerListener

public DelegatingTimerListener(java.lang.Runnable runnable)
Create a new DelegatingTimerListener.

Parameters:
runnable - the Runnable implementation to delegate to
Method Detail

timerExpired

public void timerExpired(commonj.timers.Timer timer)
Delegates execution to the underlying Runnable.

Specified by:
timerExpired in interface commonj.timers.TimerListener

Spring Framework