Class ByteBufCacheUnmarshaller

java.lang.Object
org.infinispan.client.hotrod.impl.operations.ByteBufCacheUnmarshaller
All Implemented Interfaces:
CacheUnmarshaller

public class ByteBufCacheUnmarshaller extends Object implements CacheUnmarshaller
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByteBufCacheUnmarshaller(org.infinispan.commons.configuration.ClassAllowList allowList)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <E> E
    readKey(io.netty.buffer.ByteBuf buf)
    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
    <E> E
    readKey(io.netty.buffer.ByteBuf buf, int length)
    Reads a key from the provided ByteBuf using the value media type up to the maximum number of bytes.
    <E> E
    readOther(io.netty.buffer.ByteBuf buf)
    Reads a variable int first and then reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.
    <E> E
    readOther(io.netty.buffer.ByteBuf buf, int length)
    Reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.
    <E> E
    readValue(io.netty.buffer.ByteBuf buf)
    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
    <E> E
    readValue(io.netty.buffer.ByteBuf buf, int length)
    Reads a value from the provided ByteBuf using the value media type up to the maximum number of bytes.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ByteBufCacheUnmarshaller

      public ByteBufCacheUnmarshaller(org.infinispan.commons.configuration.ClassAllowList allowList)
  • Method Details

    • setDataFormat

      public void setDataFormat(DataFormat dataFormat)
    • readKey

      public <E> E readKey(io.netty.buffer.ByteBuf buf)
      Description copied from 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
      Specified by:
      readKey in interface CacheUnmarshaller
      Type Parameters:
      E -
      Parameters:
      buf -
      Returns:
    • readKey

      public <E> E readKey(io.netty.buffer.ByteBuf buf, int length)
      Description copied from interface: CacheUnmarshaller
      Reads a key from the provided ByteBuf using the value media type up to the maximum number of bytes.
      Specified by:
      readKey in interface CacheUnmarshaller
      Type Parameters:
      E -
      Parameters:
      buf -
      length -
      Returns:
    • readValue

      public <E> E readValue(io.netty.buffer.ByteBuf buf)
      Description copied from interface: CacheUnmarshaller
      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
      Specified by:
      readValue in interface CacheUnmarshaller
      Type Parameters:
      E -
      Parameters:
      buf -
      Returns:
    • readValue

      public <E> E readValue(io.netty.buffer.ByteBuf buf, int length)
      Description copied from interface: CacheUnmarshaller
      Reads a value from the provided ByteBuf using the value media type up to the maximum number of bytes.
      Specified by:
      readValue in interface CacheUnmarshaller
      Type Parameters:
      E -
      Parameters:
      buf -
      length -
      Returns:
    • readOther

      public <E> E readOther(io.netty.buffer.ByteBuf buf)
      Description copied from interface: CacheUnmarshaller
      Reads a variable int first and then reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.
      Specified by:
      readOther in interface CacheUnmarshaller
      Type Parameters:
      E -
      Parameters:
      buf -
      Returns:
    • readOther

      public <E> E readOther(io.netty.buffer.ByteBuf buf, int length)
      Description copied from interface: CacheUnmarshaller
      Reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.
      Specified by:
      readOther in interface CacheUnmarshaller
      Type Parameters:
      E -
      Parameters:
      buf -
      length -
      Returns: