Class Handle

java.lang.Object
com.yahoo.statistics.Handle
Direct Known Subclasses:
Counter, CounterGroup, Value, ValueGroup

@Deprecated public abstract class Handle extends Object
Deprecated.
Base class for the interface to the statistics framework.
Author:
Steinar Knutsen
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Deprecated.
    Cancel this Handle and remove it from internal state in Statistics.
    abstract boolean
    Deprecated.
     
    abstract int
    Deprecated.
     
    final boolean
    Deprecated.
    Returns whether this object has been cancelled or not.
    final void
    run()
    Deprecated.
    Run the callback object first, then invoke runHandle().
    final void
    Deprecated.
    Run the callback object.
    abstract void
    Deprecated.
    Invoke an action to be performed periodically for a statistics Handle.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • runCallback

      public final void runCallback()
      Deprecated.
      Run the callback object. This will happen at the start of each invocation of a Handle's run() method. The callback is presumed to be exception safe. If no callback is set, this is a no-op. The callback will need to handle any necessary synchronization itself.
    • run

      public final void run()
      Deprecated.
      Run the callback object first, then invoke runHandle().
    • runHandle

      public abstract void runHandle()
      Deprecated.
      Invoke an action to be performed periodically for a statistics Handle.

      Synchronization has to be handled by the method itself.

    • cancel

      public final boolean cancel()
      Deprecated.
      Cancel this Handle and remove it from internal state in Statistics.
      Returns:
      value of java.util.TimerTask.cancel()
    • isCancelled

      public final boolean isCancelled()
      Deprecated.
      Returns whether this object has been cancelled or not.
      Returns:
      true if cancelled
    • equals

      public abstract boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object