Class MarshalledValueMarshaller<V,C>

java.lang.Object
org.wildfly.clustering.marshalling.MarshalledValueMarshaller<V,C>
All Implemented Interfaces:
Marshallability, Marshaller<V,MarshalledValue<V,C>>

public class MarshalledValueMarshaller<V,C> extends Object implements Marshaller<V,MarshalledValue<V,C>>
Marshaller that stores attribute values using marshalled values.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • read

      public V read(MarshalledValue<V,C> value) throws IOException
      Description copied from interface: Marshaller
      Reads a value from its marshalled form.
      Specified by:
      read in interface Marshaller<V,C>
      Parameters:
      value - the marshalled form
      Returns:
      an unmarshalled value/
      Throws:
      IOException
    • write

      public MarshalledValue<V,C> write(V object)
      Description copied from interface: Marshaller
      Writes a value to its serialized form
      Specified by:
      write in interface Marshaller<V,C>
      Returns:
      the serialized form of the value
    • isMarshallable

      public boolean isMarshallable(Object object)
      Description copied from interface: Marshallability
      Indicates whether the specified object can be marshalled.
      Specified by:
      isMarshallable in interface Marshallability
      Parameters:
      object - an object to be marshalled
      Returns:
      true, if the specified object can be marshalled, false otherwise