Class AbstractMarshaller

java.lang.Object
org.wildfly.clustering.cache.infinispan.marshalling.AbstractMarshaller
All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
Direct Known Subclasses:
UserMarshaller

public abstract class AbstractMarshaller extends Object implements org.infinispan.commons.marshall.Marshaller, org.infinispan.commons.marshall.StreamAwareMarshaller
Abstract marshaller implementation.
Author:
Paul Ferraro
  • Constructor Details

    • AbstractMarshaller

      protected AbstractMarshaller()
      Creates an Infinispan marshaller.
  • Method Details

    • stop

      public void stop()
      Specified by:
      stop in interface org.infinispan.commons.marshall.Marshaller
    • sizeEstimate

      public int sizeEstimate(Object object)
      Specified by:
      sizeEstimate in interface org.infinispan.commons.marshall.StreamAwareMarshaller
    • getBufferSizePredictor

      public org.infinispan.commons.marshall.BufferSizePredictor getBufferSizePredictor(Object object)
      Specified by:
      getBufferSizePredictor in interface org.infinispan.commons.marshall.Marshaller
    • objectFromByteBuffer

      public Object objectFromByteBuffer(byte[] bytes) throws IOException, ClassNotFoundException
      Specified by:
      objectFromByteBuffer in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      IOException
      ClassNotFoundException
    • objectFromByteBuffer

      public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
      Specified by:
      objectFromByteBuffer in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      IOException
      ClassNotFoundException
    • objectToByteBuffer

      public byte[] objectToByteBuffer(Object object) throws IOException
      Specified by:
      objectToByteBuffer in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      IOException
    • objectToBuffer

      public org.infinispan.commons.io.ByteBuffer objectToBuffer(Object object) throws IOException
      Specified by:
      objectToBuffer in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      IOException
    • objectToByteBuffer

      public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException
      Specified by:
      objectToByteBuffer in interface org.infinispan.commons.marshall.Marshaller
      Throws:
      IOException