Package com.yahoo.statistics
Class Handle
java.lang.Object
com.yahoo.statistics.Handle
- Direct Known Subclasses:
Counter
,CounterGroup
,Value
,ValueGroup
Deprecated.
Base class for the interface to the statistics framework.
- Author:
- Steinar Knutsen
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
cancel()
Deprecated.Cancel this Handle and remove it from internal state in Statistics.abstract boolean
Deprecated.abstract int
hashCode()
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.
-
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
Deprecated. -
hashCode
public abstract int hashCode()Deprecated.
-