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 java.lang.Object implements BookkeeperInternalCallbacks.GenericCallback<T>
A callback implementation with an internal timer.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookkeeperInternalCallbacks.GenericCallback<T>
cb
(package private) long
startTime
(package private) OpStatsLogger
statsLogger
(package private) int
successRc
-
Constructor Summary
Constructors Constructor Description TimedGenericCallback(BookkeeperInternalCallbacks.GenericCallback<T> cb, int successRc, OpStatsLogger statsLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
operationComplete(int rc, T result)
-
-
-
Field Detail
-
cb
final BookkeeperInternalCallbacks.GenericCallback<T> cb
-
successRc
final int successRc
-
statsLogger
final OpStatsLogger statsLogger
-
startTime
final long startTime
-
-
Constructor Detail
-
TimedGenericCallback
public TimedGenericCallback(BookkeeperInternalCallbacks.GenericCallback<T> cb, int successRc, OpStatsLogger statsLogger)
-
-
Method Detail
-
operationComplete
public void operationComplete(int rc, T result)
- Specified by:
operationComplete
in interfaceBookkeeperInternalCallbacks.GenericCallback<T>
-
-