Package org.apache.bookkeeper.util
Class OrderedGenericCallback<T>
java.lang.Object
org.apache.bookkeeper.util.OrderedGenericCallback<T>
- All Implemented Interfaces:
BookkeeperInternalCallbacks.GenericCallback<T>
public abstract class OrderedGenericCallback<T>
extends Object
implements BookkeeperInternalCallbacks.GenericCallback<T>
Generic callback implementation which will run the
callback in the thread which matches the ordering key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidoperationComplete(int rc, T result) abstract voidsafeOperationComplete(int rc, T result)
-
Constructor Details
-
OrderedGenericCallback
- Parameters:
executor- The executor on which to run the callbackorderingKey- Key used to decide which thread the callback should run on.
-
-
Method Details
-
operationComplete
- Specified by:
operationCompletein interfaceBookkeeperInternalCallbacks.GenericCallback<T>
-
safeOperationComplete
-