Class MarshallerUtil

java.lang.Object
org.infinispan.hotrod.marshall.MarshallerUtil

public final class MarshallerUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    bytes2obj(org.infinispan.commons.marshall.Marshaller marshaller, byte[] bytes, boolean objectStorage, org.infinispan.commons.configuration.ClassAllowList allowList)
     
    static org.infinispan.protostream.SerializationContext
    A convenience method to return the SerializationContext associated with the configured ProtoStreamMarshaller
    static byte[]
    obj2bytes(org.infinispan.commons.marshall.Marshaller marshaller, Object o, org.infinispan.commons.marshall.BufferSizePredictor sizePredictor)
     
    static <T> T
    tryJavaDeserialize(byte[] bytes, byte[] ret, org.infinispan.commons.configuration.ClassAllowList allowList)
     

    Methods inherited from class java.lang.Object

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

    • getSerializationContext

      public static org.infinispan.protostream.SerializationContext getSerializationContext(HotRodTransport hotRodTransport)
      A convenience method to return the SerializationContext associated with the configured ProtoStreamMarshaller
      Returns:
      the associated SerializationContext
      Throws:
      HotRodClientException - if the cache manager is not started or is not configured to use a ProtoStreamMarshaller
    • 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

      public static byte[] obj2bytes(org.infinispan.commons.marshall.Marshaller marshaller, Object o, org.infinispan.commons.marshall.BufferSizePredictor sizePredictor)