Klasse TimerLifecycle

java.lang.Object
java.util.Timer
org.eclipse.net4j.util.concurrent.TimerLifecycle
Alle implementierten Schnittstellen:
INotifier, IDeactivateable, ILifecycle

public class TimerLifecycle extends Timer implements ILifecycle
Seit:
2.0
Autor:
Eike Stepper
  • Felddetails

  • Konstruktordetails

    • TimerLifecycle

      public TimerLifecycle()
    • TimerLifecycle

      public TimerLifecycle(boolean isDaemon)
    • TimerLifecycle

      public TimerLifecycle(String name)
    • TimerLifecycle

      public TimerLifecycle(String name, boolean isDaemon)
  • Methodendetails

    • getLifecycleState

      public final LifecycleState getLifecycleState()
      Angegeben von:
      getLifecycleState in Schnittstelle ILifecycle
      Seit:
      3.0
    • isActive

      public final boolean isActive()
      Angegeben von:
      isActive in Schnittstelle ILifecycle
    • addListener

      public void addListener(IListener listener)
      Beschreibung aus Schnittstelle kopiert: INotifier
      Adds a listener to this notifier.

      Depending on the implementation duplicate listeners may lead to duplicate event delivery or not. Implementors are encouraged to prevent events from being delivered more than once to the same listener,

      Angegeben von:
      addListener in Schnittstelle INotifier
    • removeListener

      public void removeListener(IListener listener)
      Beschreibung aus Schnittstelle kopiert: INotifier
      Removes a listener from this notifier.
      Angegeben von:
      removeListener in Schnittstelle INotifier
    • getListeners

      public IListener[] getListeners()
      Beschreibung aus Schnittstelle kopiert: INotifier
      Returns the listeners that are registered with this notifier.

      Depending on the implementation duplicate listeners may be contained in the returned array.

      Angegeben von:
      getListeners in Schnittstelle INotifier
    • hasListeners

      public boolean hasListeners()
      Beschreibung aus Schnittstelle kopiert: INotifier
      Returns true if one or more listeners are registered with this notifier, false otherwise.
      Angegeben von:
      hasListeners in Schnittstelle INotifier
    • activate

      public final void activate() throws LifecycleException
      Angegeben von:
      activate in Schnittstelle ILifecycle
      Löst aus:
      LifecycleException
    • deactivate

      public final Exception deactivate()
      Angegeben von:
      deactivate in Schnittstelle IDeactivateable
      Angegeben von:
      deactivate in Schnittstelle ILifecycle
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • cancel

      public void cancel()
      Setzt außer Kraft:
      cancel in Klasse Timer