org.infinispan.hotrod.impl.operations.SetOperation Maven / Gradle / Ivy
package org.infinispan.hotrod.impl.operations;
import org.infinispan.api.common.CacheWriteOptions;
import org.infinispan.hotrod.impl.DataFormat;
import io.netty.buffer.ByteBuf;
/**
* Implements "put" as defined by Hot Rod protocol
* specification.
*
* @since 14.0
*/
public class SetOperation extends AbstractPutOperation {
public SetOperation(OperationContext operationContext, K key, byte[] keyBytes, byte[] value, CacheWriteOptions options, DataFormat dataFormat) {
super(operationContext, key, keyBytes, value, options, dataFormat);
}
@Override
void completeResponse(ByteBuf buf, short status) {
assert returnPossiblePrevValue(buf, status) == null;
complete(null);
}
}