Class ByteBufferMarshalledValue<V>

java.lang.Object
org.wildfly.clustering.marshalling.ByteBufferMarshalledValue<V>
Type Parameters:
V - the type wrapped by this marshalled value
All Implemented Interfaces:
Serializable, MarshalledValue<V,ByteBufferMarshaller>
Direct Known Subclasses:
ByteBufferMarshalledKey

public class ByteBufferMarshalledValue<V> extends Object implements MarshalledValue<V,ByteBufferMarshaller>, Serializable
MarshalledValue implementation that uses a ByteBufferMarshaller.
Author:
Paul Ferraro
See Also:
  • Constructor Details

    • ByteBufferMarshalledValue

      public ByteBufferMarshalledValue(V object, ByteBufferMarshaller marshaller)
      Constructs a marshalled value from the specified object and marshaller.
      Parameters:
      object - the wrapped object
      marshaller - a marshaller suitable for marshalling the specified object
    • ByteBufferMarshalledValue

      public ByteBufferMarshalledValue(ByteBuffer buffer)
      Constructs a marshalled value from the specified byte buffer. This constructor is only public to facilitate marshallers of this object (from other packages). The byte buffer parameter must not be read outside the context of this object.
      Parameters:
      buffer - a byte buffer
  • Method Details