static class NullStatsLogger.NullOpStatsLogger extends java.lang.Object implements OpStatsLogger
OpStatsLogger
.Modifier and Type | Field and Description |
---|---|
(package private) OpStatsData |
nullOpStats |
Constructor and Description |
---|
NullOpStatsLogger() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear stats for this operation.
|
void |
registerFailedEvent(long eventLatency,
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 eventLatency,
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() |
final OpStatsData nullOpStats
public void registerFailedEvent(long eventLatency, java.util.concurrent.TimeUnit unit)
OpStatsLogger
registerFailedEvent
in interface OpStatsLogger
eventLatency
- The event latencypublic void registerSuccessfulEvent(long eventLatency, java.util.concurrent.TimeUnit unit)
OpStatsLogger
registerSuccessfulEvent
in interface OpStatsLogger
eventLatency
- The event latencypublic void registerSuccessfulValue(long value)
OpStatsLogger
registerSuccessfulValue
in interface OpStatsLogger
public void registerFailedValue(long value)
OpStatsLogger
registerFailedValue
in interface OpStatsLogger
public OpStatsData toOpStatsData()
toOpStatsData
in interface OpStatsLogger
public void clear()
OpStatsLogger
clear
in interface OpStatsLogger
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.