Class 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 Detail

      • AbstractMarshaller

        public AbstractMarshaller()
    • Method Detail

      • 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
      • objectToBuffer

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