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

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

There is a newer version: 15.1.1.Final
Show newest version
package org.infinispan.client.hotrod.impl.operations;

import io.netty.buffer.ByteBuf;

public interface CacheUnmarshaller {
   /**
    * Reads a variable int array first and then reads a key using the value media type only using up to the
    * maximum provided
    * number of bytes
    * @param buf
    * @return
    * @param 
    */
    E readKey(ByteBuf buf);

   /**
    * Reads a key from the provided ByteBuf using the value media type up to the maximum number of bytes.
    * @param buf
    * @param maxLength
    * @return
    * @param 
    */
    E readKey(ByteBuf buf, int maxLength);

   /**
    * Reads a variable int array first and then reads a value using the value media type only using up to the
    * maximum provided
    * number of bytes
    * @param buf
    * @return
    * @param 
    */
    E readValue(ByteBuf buf);

   /**
    * Reads a value from the provided ByteBuf using the value media type up to the maximum number of bytes.
    * @param buf
    * @param maxLength
    * @return
    * @param 
    */
    E readValue(ByteBuf buf, int maxLength);

   /**
    * Reads a variable int first and then reads an arbitrary object with the configured Marshaller up to the
    * maximum number of bytes.
    * @param buf
    * @return
    * @param 
    */
    E readOther(ByteBuf buf);

   /**
    * Reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.
    * @param buf
    * @param maxLength
    * @return
    * @param 
    */
    E readOther(ByteBuf buf, int maxLength);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy