org.infinispan.client.hotrod.impl.protocol.Codec40 Maven / Gradle / Ivy
package org.infinispan.client.hotrod.impl.protocol;
import java.util.Map;
import org.infinispan.client.hotrod.MetadataValue;
import org.infinispan.client.hotrod.impl.ClientTopology;
import org.infinispan.client.hotrod.impl.operations.CacheUnmarshaller;
import org.infinispan.client.hotrod.impl.operations.GetWithMetadataOperation;
import org.infinispan.client.hotrod.impl.operations.HotRodOperation;
import org.infinispan.client.hotrod.impl.transport.netty.ByteBufUtil;
import io.netty.buffer.ByteBuf;
/**
* @since 14.0
*/
public class Codec40 extends Codec31 {
@Override
public void writeHeader(ByteBuf buf, long messageId, ClientTopology clientTopology, HotRodOperation> operation) {
writeHeader(buf, messageId, clientTopology, operation, HotRodConstants.VERSION_40);
}
@Override
public Object returnPossiblePrevValue(ByteBuf buf, short status, CacheUnmarshaller unmarshaller) {
if (HotRodConstants.hasPrevious(status)) {
MetadataValue
© 2015 - 2025 Weber Informatics LLC | Privacy Policy