public interface OpStatsLogger
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear stats for this operation.
|
void |
registerFailedEvent(long eventLatencyMillis,
java.util.concurrent.TimeUnit unit)
Increment the failed op counter with the given eventLatency.
|
void |
registerFailedValue(long value)
An operation with the given value failed.
|
void |
registerSuccessfulEvent(long eventLatencyMillis,
java.util.concurrent.TimeUnit unit)
An operation succeeded with the given eventLatency.
|
void |
registerSuccessfulValue(long value)
An operation with the given value succeeded.
|
OpStatsData |
toOpStatsData() |
void registerFailedEvent(long eventLatencyMillis, java.util.concurrent.TimeUnit unit)
eventLatencyMillis
- The event latencyunit
- void registerSuccessfulEvent(long eventLatencyMillis, java.util.concurrent.TimeUnit unit)
eventLatencyMillis
- The event latencyunit
- void registerSuccessfulValue(long value)
value
- void registerFailedValue(long value)
OpStatsData toOpStatsData()
void clear()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.