1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
9 * Callback interface provided to StatisticsCollector.
12 * StatisticsCollector doesn't make any guarantees about thread safety.
13 * If the same reference of StatisticsCollectorCallback is passed to multiple
14 * StatisticsCollector references, then its the responsibility of the
15 * user to make StatisticsCollectorCallback's implementation thread-safe.
18 public interface StatisticsCollectorCallback
{
20 * Callback function to get ticker values.
21 * @param tickerType Ticker type.
22 * @param tickerCount Value of ticker type.
24 void tickerCallback(TickerType tickerType
, long tickerCount
);
27 * Callback function to get histogram values.
28 * @param histType Histogram type.
29 * @param histData Histogram data.
31 void histogramCallback(HistogramType histType
, HistogramData histData
);