Modifier and Type | Class and Description |
---|---|
static interface |
RateReporter.Reporter
Interface for reporting of rate information
|
Constructor and Description |
---|
RateReporter(long reportInterval,
RateReporter.Reporter reportingFunc)
Create a rate reporter with the given report interval in nanoseconds and the reporting function.
|
Modifier and Type | Method and Description |
---|---|
void |
halt()
Signal the run loop to exit.
|
void |
onMessage(long messages,
long bytes)
Notify rate reporter of number of messages and bytes received, sent, etc.
|
void |
run()
Run loop for the rate reporter
|
public RateReporter(long reportInterval, RateReporter.Reporter reportingFunc)
reportInterval
- in nanosecondsreportingFunc
- to call for reporting ratesCopyright © 2014-2020 Real Logic Limited. All Rights Reserved.