org.springframework.scheduling.commonj

Class DelegatingTimerListener

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

    Deprecated. 
    as of 5.1, in favor of EE 7's DefaultManagedTaskScheduler

    @Deprecated
    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

      Constructors 
      Constructor and Description
      DelegatingTimerListener(java.lang.Runnable runnable)
      Deprecated. 
      Create a new DelegatingTimerListener.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      void timerExpired(commonj.timers.Timer timer)
      Deprecated. 
      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)
        Deprecated. 
        Create a new DelegatingTimerListener.
        Parameters:
        runnable - the Runnable implementation to delegate to
    • Method Detail

      • timerExpired

        public void timerExpired(commonj.timers.Timer timer)
        Deprecated. 
        Delegates execution to the underlying Runnable.
        Specified by:
        timerExpired in interface commonj.timers.TimerListener