All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.spy.memcached.protocol.ascii.GetsOperationImpl Maven / Gradle / Ivy

The newest version!
package net.spy.memcached.protocol.ascii;

import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;

import net.spy.memcached.ops.APIType;
import net.spy.memcached.ops.GetsOperation;

/**
 * Implementation of the gets operation.
 */
class GetsOperationImpl extends BaseGetOpImpl implements GetsOperation {

  private static final String CMD = "gets";

  public GetsOperationImpl(String key, GetsOperation.Callback cb) {
    super(CMD, cb, Collections.singleton(key));
    setAPIType(APIType.GETS);
  }

  public GetsOperationImpl(Collection keys, GetsOperation.Callback cb) {
    super(CMD, cb, new HashSet(keys));
    setAPIType(APIType.GETS);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy