Package com.yahoo.statistics
Interface Callback
-
public interface Callback
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(Handle h, boolean firstTime)
Invoked each logging cycle right before the events for a Handle are emitted to the log.
-
-
-
Method Detail
-
run
void run(Handle h, boolean firstTime)
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
-
-