public final class MarshallerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
bytes2obj(Marshaller marshaller,
byte[] bytes,
boolean objectStorage,
ClassWhiteList whitelist) |
static org.infinispan.protostream.SerializationContext |
getSerializationContext(RemoteCacheManager remoteCacheManager)
A convenience method to return the
SerializationContext associated with the ProtoStreamMarshaller
configured on the provided RemoteCacheManager. |
static byte[] |
obj2bytes(Marshaller marshaller,
Object o,
boolean isKey,
int estimateKeySize,
int estimateValueSize) |
static <T> T |
tryJavaDeserialize(byte[] bytes,
byte[] ret,
ClassWhiteList whitelist) |
public static org.infinispan.protostream.SerializationContext getSerializationContext(RemoteCacheManager remoteCacheManager)
SerializationContext associated with the ProtoStreamMarshaller
configured on the provided RemoteCacheManager.SerializationContextHotRodClientException - if the cache manager is not started or is not configured to use a ProtoStreamMarshallerpublic static <T> T bytes2obj(Marshaller marshaller, byte[] bytes, boolean objectStorage, ClassWhiteList whitelist)
public static <T> T tryJavaDeserialize(byte[] bytes,
byte[] ret,
ClassWhiteList whitelist)
public static byte[] obj2bytes(Marshaller marshaller, Object o, boolean isKey, int estimateKeySize, int estimateValueSize)
Copyright © 2022 JBoss by Red Hat. All rights reserved.