Package org.apache.bookkeeper.proto
Class BookkeeperInternalCallbacks.TimedGenericCallback<T>
java.lang.Object
org.apache.bookkeeper.proto.BookkeeperInternalCallbacks.TimedGenericCallback<T>
- All Implemented Interfaces:
BookkeeperInternalCallbacks.GenericCallback<T>
- Enclosing class:
- BookkeeperInternalCallbacks
public static class BookkeeperInternalCallbacks.TimedGenericCallback<T>
extends Object
implements BookkeeperInternalCallbacks.GenericCallback<T>
A callback implementation with an internal timer.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BookkeeperInternalCallbacks.GenericCallback<T>(package private) final long(package private) final OpStatsLogger(package private) final int -
Constructor Summary
ConstructorsConstructorDescriptionTimedGenericCallback(BookkeeperInternalCallbacks.GenericCallback<T> cb, int successRc, OpStatsLogger statsLogger) -
Method Summary
-
Field Details
-
cb
-
successRc
final int successRc -
statsLogger
-
startTime
final long startTime
-
-
Constructor Details
-
TimedGenericCallback
public TimedGenericCallback(BookkeeperInternalCallbacks.GenericCallback<T> cb, int successRc, OpStatsLogger statsLogger)
-
-
Method Details
-
operationComplete
- Specified by:
operationCompletein interfaceBookkeeperInternalCallbacks.GenericCallback<T>
-