net.spy.memcached.protocol.binary.FlushOperationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spymemcached Show documentation
Show all versions of spymemcached Show documentation
A simple, asynchronous, single-threaded Memcached client written in java.
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