Class ByteBufferTestMarshaller<T>

java.lang.Object
org.wildfly.clustering.marshalling.ByteBufferTestMarshaller<T>
Type Parameters:
T - marshaller target type
All Implemented Interfaces:
org.wildfly.clustering.marshalling.Marshallability, org.wildfly.clustering.marshalling.Marshaller<T,ByteBuffer>, TestMarshaller<T>

public class ByteBufferTestMarshaller<T> extends Object implements TestMarshaller<T>
A ByteBufferMarshaller based TestMarshaller.
Author:
Paul Ferraro
  • Constructor Details

    • ByteBufferTestMarshaller

      public ByteBufferTestMarshaller(org.wildfly.clustering.marshalling.ByteBufferMarshaller marshaller)
  • Method Details

    • read

      public T read(ByteBuffer buffer) throws IOException
      Specified by:
      read in interface org.wildfly.clustering.marshalling.Marshaller<T,ByteBuffer>
      Throws:
      IOException
    • write

      public ByteBuffer write(T object) throws IOException
      Specified by:
      write in interface org.wildfly.clustering.marshalling.Marshaller<T,ByteBuffer>
      Throws:
      IOException
    • isMarshallable

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