Class GetCallbackWrapper

java.lang.Object
net.spy.memcached.protocol.GetCallbackWrapper
All Implemented Interfaces:
GetOperation.Callback, OperationCallback

public class GetCallbackWrapper extends Object implements GetOperation.Callback
Wrapper callback for use in optimized gets.
  • Field Details

  • Constructor Details

  • Method Details

    • gotData

      public void gotData(String key, int flags, byte[] data)
      Description copied from interface: GetOperation.Callback
      Callback for each result from a get.
      Specified by:
      gotData in interface GetOperation.Callback
      Parameters:
      key - the key that was retrieved
      flags - the flags for this value
      data - the data stored under this key
    • receivedStatus

      public void receivedStatus(OperationStatus status)
      Description copied from interface: OperationCallback
      Method invoked with the status when the operation is complete.
      Specified by:
      receivedStatus in interface OperationCallback
      Parameters:
      status - the result of the operation
    • complete

      public void complete()
      Description copied from interface: OperationCallback
      Called whenever an operation completes.
      Specified by:
      complete in interface OperationCallback