public class OpStatsListener<T> extends java.lang.Object implements FutureEventListener<T>
FutureEventListener monitors the stats for a given operation.| Constructor and Description |
|---|
OpStatsListener(org.apache.bookkeeper.stats.OpStatsLogger opStatsLogger) |
OpStatsListener(org.apache.bookkeeper.stats.OpStatsLogger opStatsLogger,
com.google.common.base.Stopwatch stopwatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Throwable cause) |
void |
onSuccess(T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptpublic OpStatsListener(org.apache.bookkeeper.stats.OpStatsLogger opStatsLogger,
com.google.common.base.Stopwatch stopwatch)
public OpStatsListener(org.apache.bookkeeper.stats.OpStatsLogger opStatsLogger)
public void onSuccess(T value)
onSuccess in interface FutureEventListener<T>public void onFailure(java.lang.Throwable cause)
onFailure in interface FutureEventListener<T>Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.