Class MarshallerEncoder

java.lang.Object
org.infinispan.commons.dataconversion.MarshallerEncoder
All Implemented Interfaces:
Encoder
Direct Known Subclasses:
GlobalMarshallerEncoder, JavaSerializationEncoder

@Deprecated(forRemoval=true) public abstract class MarshallerEncoder extends Object implements Encoder
Deprecated, for removal: This API element is subject to removal in a future version.
Since 12.1, to be removed in a future version.
Encoder that uses a StreamingMarshaller to convert objects to byte[] and back.
Since:
9.1
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Convert from storage format to the read/write format.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected byte[]
    marshall(Object source)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    toStorage(Object content)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Convert data in the read/write format to the storage format.
    protected Object
    unmarshall(byte[] source)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.infinispan.commons.dataconversion.Encoder

    getStorageFormat, id
  • Constructor Details

    • MarshallerEncoder

      public MarshallerEncoder(Marshaller marshaller)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • toStorage

      public Object toStorage(Object content)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Encoder
      Convert data in the read/write format to the storage format.
      Specified by:
      toStorage in interface Encoder
      Parameters:
      content - data to be converted, never null.
      Returns:
      Object in the storage format.
    • fromStorage

      public Object fromStorage(Object stored)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Encoder
      Convert from storage format to the read/write format.
      Specified by:
      fromStorage in interface Encoder
      Parameters:
      stored - data as stored in the cache, never null.
      Returns:
      data in the read/write format
    • isStorageFormatFilterable

      public boolean isStorageFormatFilterable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isStorageFormatFilterable in interface Encoder
      Returns:
      if true, will perform stream and related operation in the storage format.
    • unmarshall

      protected Object unmarshall(byte[] source) throws IOException, ClassNotFoundException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
      ClassNotFoundException
    • marshall

      protected byte[] marshall(Object source) throws IOException, InterruptedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
      InterruptedException