Class MultiOperationCallback

java.lang.Object
net.spy.memcached.ops.MultiOperationCallback
All Implemented Interfaces:
OperationCallback
Direct Known Subclasses:
MultiGetOperationCallback, MultiGetsOperationCallback, MultiReplicaGetOperationCallback

public abstract class MultiOperationCallback extends Object implements OperationCallback
An operation callback that will capture receivedStatus and complete invocations and dispatch to a single callback.

This is useful for the cases where a single request gets split into multiple requests and the callback needs to not know the difference.

  • Field Details

  • Constructor Details

    • MultiOperationCallback

      public MultiOperationCallback(OperationCallback original, int todo)
      Get a MultiOperationCallback over the given callback for the specified number of replicates.
      Parameters:
      original - the original callback
      todo - how many complete() calls we expect before dispatching.
  • Method Details