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 Details

    • OrderedGenericCallback

      public OrderedGenericCallback(OrderedExecutor executor, long orderingKey)
      Parameters:
      executor - The executor on which to run the callback
      orderingKey - Key used to decide which thread the callback should run on.
  • Method Details