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

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

The newest version!
// Copyright (c) 2006  Dustin Sallings 

package net.spy.memcached.protocol.ascii;

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

import net.spy.memcached.ops.GetOperation;

/**
 * Operation for retrieving data.
 */
class GetOperationImpl extends BaseGetOpImpl implements GetOperation {

	private static final String CMD="get";

	public GetOperationImpl(String key, GetOperation.Callback c) {
		super(CMD, c, Collections.singleton(key));
	}

	public GetOperationImpl(Collection k, GetOperation.Callback c) {
		super(CMD, c, new HashSet(k));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy