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

org.infinispan.client.hotrod.impl.operations.NoHotRodOperation Maven / Gradle / Ivy

package org.infinispan.client.hotrod.impl.operations;

import org.infinispan.client.hotrod.DataFormat;
import org.infinispan.client.hotrod.impl.protocol.Codec;
import org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder;

import io.netty.buffer.ByteBuf;
import io.netty.channel.Channel;

public class NoHotRodOperation extends AbstractHotRodOperation {

   private NoHotRodOperation() {

   }

   private static final NoHotRodOperation INSTANCE;

   static {
      INSTANCE = new NoHotRodOperation<>();
      INSTANCE.complete(null);
   }

   public static  NoHotRodOperation instance() {
      return (NoHotRodOperation) INSTANCE;
   }

   @Override
   public E createResponse(ByteBuf buf, short status, HeaderDecoder decoder, Codec codec, CacheUnmarshaller unmarshaller) {
      throw new UnsupportedOperationException();
   }

   @Override
   public void writeOperationRequest(Channel channel, ByteBuf buf, Codec codec) {
      throw new UnsupportedOperationException();
   }

   @Override
   public short requestOpCode() {
      return -1;
   }

   @Override
   public short responseOpCode() {
      return -1;
   }

   @Override
   public int flags() {
      return -1;
   }

   @Override
   public byte[] getCacheNameBytes() {
      return new byte[0];
   }

   @Override
   public String getCacheName() {
      return null;
   }

   @Override
   public DataFormat getDataFormat() {
      return null;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy