Class ByteBufCacheUnmarshaller
java.lang.Object
org.infinispan.client.hotrod.impl.operations.ByteBufCacheUnmarshaller
- All Implemented Interfaces:
CacheUnmarshaller
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufCacheUnmarshaller(org.infinispan.commons.configuration.ClassAllowList allowList) -
Method Summary
Modifier and TypeMethodDescription<E> EreadKey(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> EreadKey(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> EreadOther(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> EreadOther(io.netty.buffer.ByteBuf buf, int length) Reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.<E> EreadValue(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> EreadValue(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.voidsetDataFormat(DataFormat dataFormat)
-
Constructor Details
-
ByteBufCacheUnmarshaller
public ByteBufCacheUnmarshaller(org.infinispan.commons.configuration.ClassAllowList allowList)
-
-
Method Details
-
setDataFormat
-
readKey
public <E> E readKey(io.netty.buffer.ByteBuf buf) Description copied from interface:CacheUnmarshallerReads 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:
readKeyin interfaceCacheUnmarshaller- Type Parameters:
E-- Parameters:
buf-- Returns:
-
readKey
public <E> E readKey(io.netty.buffer.ByteBuf buf, int length) Description copied from interface:CacheUnmarshallerReads a key from the provided ByteBuf using the value media type up to the maximum number of bytes.- Specified by:
readKeyin interfaceCacheUnmarshaller- Type Parameters:
E-- Parameters:
buf-length-- Returns:
-
readValue
public <E> E readValue(io.netty.buffer.ByteBuf buf) Description copied from interface:CacheUnmarshallerReads 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:
readValuein interfaceCacheUnmarshaller- Type Parameters:
E-- Parameters:
buf-- Returns:
-
readValue
public <E> E readValue(io.netty.buffer.ByteBuf buf, int length) Description copied from interface:CacheUnmarshallerReads a value from the provided ByteBuf using the value media type up to the maximum number of bytes.- Specified by:
readValuein interfaceCacheUnmarshaller- Type Parameters:
E-- Parameters:
buf-length-- Returns:
-
readOther
public <E> E readOther(io.netty.buffer.ByteBuf buf) Description copied from interface:CacheUnmarshallerReads a variable int first and then reads an arbitrary object with the configured Marshaller up to the maximum number of bytes.- Specified by:
readOtherin interfaceCacheUnmarshaller- Type Parameters:
E-- Parameters:
buf-- Returns:
-
readOther
public <E> E readOther(io.netty.buffer.ByteBuf buf, int length) Description copied from interface:CacheUnmarshallerReads an arbitrary object with the configured Marshaller up to the maximum number of bytes.- Specified by:
readOtherin interfaceCacheUnmarshaller- Type Parameters:
E-- Parameters:
buf-length-- Returns:
-