net.spy.memcached.protocol.ascii.MGetOperationImpl Maven / Gradle / Ivy
The newest version!
package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.APIType;
import net.spy.memcached.ops.GetOperation;
import java.util.Collection;
import java.util.HashSet;
/**
* Operation for retrieving data.
*/
public class MGetOperationImpl extends BaseGetOpImpl implements GetOperation {
private static final String CMD = "mget";
public MGetOperationImpl(Collection k, Callback c) {
super(CMD, c, new HashSet(k));
setAPIType(APIType.MGET);
}
@Override
public boolean isBulkOperation() {
return true;
}
@Override
public boolean isPipeOperation() {
return false;
}
}