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

net.spy.memcached.protocol.binary.SASLMechsOperationImpl Maven / Gradle / Ivy

There is a newer version: 2.8.4
Show newest version
package net.spy.memcached.protocol.binary;

import net.spy.memcached.ops.OperationCallback;
import net.spy.memcached.ops.OperationStatus;
import net.spy.memcached.ops.SASLMechsOperation;

class SASLMechsOperationImpl extends OperationImpl implements
		SASLMechsOperation {

	private static final byte CMD = 0x20;

	public SASLMechsOperationImpl(OperationCallback cb) {
		super(CMD, generateOpaque(), cb);
	}

	@Override
	public void initialize() {
		prepareBuffer("", 0, EMPTY_BYTES);
	}

	@Override
	protected void decodePayload(byte[] pl) {
		getCallback().receivedStatus(
				new OperationStatus(true, new String(pl)));
	}

	@Override
	public String toString() {
		return "SASL mechs operation";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy