Package com.yahoo.statistics
Interface Callback
Deprecated.
Definition of the callback interface for the statistics API. It is a common
use case to need a reference to the Handle (e.g. Value or Counter) which a
callback is related to. Since everything in a Handle since 5.1.4 is fully
initialized from the constructor, it became cumbersome to use Runnable for
the callback and this interface came into use.
- Since:
- 5.1.4
- Author:
- Steinar Knutsen
-
Method Summary
-
Method Details
-
run
Deprecated.Invoked each logging cycle right before the events for a Handle are emitted to the log.- Parameters:
h
- the handle which invoked this callbackfirstTime
- true the first time the method is invoked from h, false later
-