Class MarshallerUtil
- java.lang.Object
-
- org.infinispan.client.hotrod.marshall.MarshallerUtil
-
public final class MarshallerUtil extends Object
- Author:
- Galder ZamarreƱo
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> Tbytes2obj(org.infinispan.commons.marshall.Marshaller marshaller, byte[] bytes, boolean objectStorage, org.infinispan.commons.configuration.ClassAllowList allowList)static org.infinispan.protostream.SerializationContextgetSerializationContext(RemoteCacheContainer remoteCacheManager)A convenience method to return theSerializationContextassociated with theProtoStreamMarshallerconfigured on the providedRemoteCacheManager.static byte[]obj2bytes(org.infinispan.commons.marshall.Marshaller marshaller, Object o, boolean isKey, int estimateKeySize, int estimateValueSize)Deprecated.Since 12.0, will be removed in 15.0static byte[]obj2bytes(org.infinispan.commons.marshall.Marshaller marshaller, Object o, org.infinispan.commons.marshall.BufferSizePredictor sizePredictor)static <T> TtryJavaDeserialize(byte[] bytes, byte[] ret, org.infinispan.commons.configuration.ClassAllowList allowList)
-
-
-
Method Detail
-
getSerializationContext
public static org.infinispan.protostream.SerializationContext getSerializationContext(RemoteCacheContainer remoteCacheManager)
A convenience method to return theSerializationContextassociated with theProtoStreamMarshallerconfigured on the providedRemoteCacheManager.- Returns:
- the associated
SerializationContext - Throws:
HotRodClientException- if the cache manager is not started or is not configured to use aProtoStreamMarshaller
-
bytes2obj
public static <T> T bytes2obj(org.infinispan.commons.marshall.Marshaller marshaller, byte[] bytes, boolean objectStorage, org.infinispan.commons.configuration.ClassAllowList allowList)
-
tryJavaDeserialize
public static <T> T tryJavaDeserialize(byte[] bytes, byte[] ret, org.infinispan.commons.configuration.ClassAllowList allowList)
-
obj2bytes
@Deprecated public static byte[] obj2bytes(org.infinispan.commons.marshall.Marshaller marshaller, Object o, boolean isKey, int estimateKeySize, int estimateValueSize)
Deprecated.Since 12.0, will be removed in 15.0
-
obj2bytes
public static byte[] obj2bytes(org.infinispan.commons.marshall.Marshaller marshaller, Object o, org.infinispan.commons.marshall.BufferSizePredictor sizePredictor)
-
-