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 java.lang.Object implements BookkeeperInternalCallbacks.GenericCallback<T>
Generic callback implementation which will run the callback in the thread which matches the ordering key.
-
-
Constructor Summary
Constructors Constructor Description OrderedGenericCallback(OrderedExecutor executor, long orderingKey)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
operationComplete(int rc, T result)
abstract void
safeOperationComplete(int rc, T result)
-
-
-
Constructor Detail
-
OrderedGenericCallback
public OrderedGenericCallback(OrderedExecutor executor, long orderingKey)
- Parameters:
executor
- The executor on which to run the callbackorderingKey
- Key used to decide which thread the callback should run on.
-
-
Method Detail
-
operationComplete
public final void operationComplete(int rc, T result)
- Specified by:
operationComplete
in interfaceBookkeeperInternalCallbacks.GenericCallback<T>
-
safeOperationComplete
public abstract void safeOperationComplete(int rc, T result)
-
-