Class WrappedMessageByteBufferMarshaller

java.lang.Object
org.wildfly.clustering.cache.infinispan.marshalling.protostream.WrappedMessageByteBufferMarshaller
All Implemented Interfaces:
org.wildfly.clustering.marshalling.ByteBufferMarshaller, org.wildfly.clustering.marshalling.Marshallability, org.wildfly.clustering.marshalling.Marshaller<Object,ByteBuffer>

public class WrappedMessageByteBufferMarshaller extends Object implements org.wildfly.clustering.marshalling.ByteBufferMarshaller
A ByteBufferMarshaller based on a ProtoStream WrappedMessage.
Author:
Paul Ferraro
  • Constructor Details

    • WrappedMessageByteBufferMarshaller

      public WrappedMessageByteBufferMarshaller(ClassLoader loader)
    • WrappedMessageByteBufferMarshaller

      public WrappedMessageByteBufferMarshaller(org.infinispan.protostream.ImmutableSerializationContext context)
  • Method Details

    • isMarshallable

      public boolean isMarshallable(Object object)
      Specified by:
      isMarshallable in interface org.wildfly.clustering.marshalling.Marshallability
    • readFrom

      public Object readFrom(InputStream input) throws IOException
      Specified by:
      readFrom in interface org.wildfly.clustering.marshalling.ByteBufferMarshaller
      Throws:
      IOException
    • writeTo

      public void writeTo(OutputStream output, Object object) throws IOException
      Specified by:
      writeTo in interface org.wildfly.clustering.marshalling.ByteBufferMarshaller
      Throws:
      IOException
    • size

      public OptionalInt size(Object object)
      Specified by:
      size in interface org.wildfly.clustering.marshalling.ByteBufferMarshaller