net.spy.memcached.ops
Class MultiReplicaGetOperationCallback

java.lang.Object
  extended by net.spy.memcached.ops.MultiOperationCallback
      extended by net.spy.memcached.ops.MultiReplicaGetOperationCallback
All Implemented Interfaces:
OperationCallback, ReplicaGetOperation.Callback

public class MultiReplicaGetOperationCallback
extends MultiOperationCallback
implements ReplicaGetOperation.Callback

MultiOperationCallback for replica get operations.


Field Summary
 
Fields inherited from class net.spy.memcached.ops.MultiOperationCallback
originalCallback
 
Constructor Summary
MultiReplicaGetOperationCallback(OperationCallback original, int todo)
           
 
Method Summary
 void gotData(java.lang.String key, int flags, byte[] data)
          Callback for each result from a replica get.
 
Methods inherited from class net.spy.memcached.ops.MultiOperationCallback
complete, receivedStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.spy.memcached.ops.OperationCallback
complete, receivedStatus
 

Constructor Detail

MultiReplicaGetOperationCallback

public MultiReplicaGetOperationCallback(OperationCallback original,
                                        int todo)
Method Detail

gotData

public void gotData(java.lang.String key,
                    int flags,
                    byte[] data)
Description copied from interface: ReplicaGetOperation.Callback
Callback for each result from a replica get.

Specified by:
gotData in interface ReplicaGetOperation.Callback
Parameters:
key - the key that was retrieved
flags - the flags for this value
data - the data stored under this key


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.