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

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

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

import net.spy.memcached.ops.FlushOperation;
import net.spy.memcached.ops.OperationCallback;

class FlushOperationImpl extends OperationImpl implements FlushOperation {

	private static final int CMD=8;
	private final int delay;

	public FlushOperationImpl(OperationCallback cb) {
		this(0, cb);
	}

	public FlushOperationImpl(int d, OperationCallback cb) {
		super(CMD, generateOpaque(), cb);
		delay=d;
	}

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy