Class BytesOnlyMarshaller

java.lang.Object
org.infinispan.hotrod.marshall.BytesOnlyMarshaller
All Implemented Interfaces:
org.infinispan.commons.marshall.Marshaller

public class BytesOnlyMarshaller extends Object implements org.infinispan.commons.marshall.Marshaller
Marshaller that only supports byte[] instances writing them as is
Since:
14.0
  • Field Details

  • Method Details

    • objectToByteBuffer

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

      public byte[] objectToByteBuffer(Object obj)
      Specified by:
      objectToByteBuffer in interface org.infinispan.commons.marshall.Marshaller
    • objectFromByteBuffer

      public Object objectFromByteBuffer(byte[] buf)
      Specified by:
      objectFromByteBuffer in interface org.infinispan.commons.marshall.Marshaller
    • objectFromByteBuffer

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

      public org.infinispan.commons.io.ByteBuffer objectToBuffer(Object o)
      Specified by:
      objectToBuffer in interface org.infinispan.commons.marshall.Marshaller
    • isMarshallable

      public boolean isMarshallable(Object o)
      Specified by:
      isMarshallable in interface org.infinispan.commons.marshall.Marshaller
    • getBufferSizePredictor

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

      public org.infinispan.commons.dataconversion.MediaType mediaType()
      Specified by:
      mediaType in interface org.infinispan.commons.marshall.Marshaller