Class MarshallerUtil
java.lang.Object
org.infinispan.client.hotrod.marshall.MarshallerUtil
- Author:
- Galder ZamarreƱo
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
bytes2obj
(Marshaller marshaller, byte[] bytes, boolean objectStorage, ClassAllowList allowList) static org.infinispan.protostream.SerializationContext
getSerializationContext
(RemoteCacheContainer remoteCacheManager) A convenience method to return theSerializationContext
associated with theProtoStreamMarshaller
configured on the providedRemoteCacheManager
.static byte[]
obj2bytes
(Marshaller marshaller, Object o, boolean isKey, int estimateKeySize, int estimateValueSize) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, will be removed in 15.0static byte[]
obj2bytes
(Marshaller marshaller, Object o, BufferSizePredictor sizePredictor) static <T> T
tryJavaDeserialize
(byte[] bytes, byte[] ret, ClassAllowList allowList)
-
Method Details
-
getSerializationContext
public static org.infinispan.protostream.SerializationContext getSerializationContext(RemoteCacheContainer remoteCacheManager) A convenience method to return theSerializationContext
associated with theProtoStreamMarshaller
configured 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(Marshaller marshaller, byte[] bytes, boolean objectStorage, ClassAllowList allowList) -
tryJavaDeserialize
-
obj2bytes
@Deprecated(forRemoval=true) public static byte[] obj2bytes(Marshaller marshaller, Object o, boolean isKey, int estimateKeySize, int estimateValueSize) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, will be removed in 15.0 -
obj2bytes
-