Class ByteBufferMarshalledValueFactory
java.lang.Object
org.wildfly.clustering.marshalling.ByteBufferMarshalledValueFactory
- All Implemented Interfaces:
Marshallability,MarshalledValueFactory<ByteBufferMarshaller>
- Direct Known Subclasses:
ByteBufferMarshalledKeyFactory
public class ByteBufferMarshalledValueFactory
extends Object
implements MarshalledValueFactory<ByteBufferMarshaller>
Factory for creating a
ByteBufferMarshalledValue.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.marshalling.Marshallability
TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> ByteBufferMarshalledValue<V> createMarshalledValue(V object) Creates a new marshalled value from the specified object.The marshalling context applied to marshalled values created by this factory.booleanisMarshallable(Object object) Indicates whether the specified object can be marshalled.
-
Constructor Details
-
ByteBufferMarshalledValueFactory
-
-
Method Details
-
isMarshallable
Description copied from interface:MarshallabilityIndicates whether the specified object can be marshalled.- Specified by:
isMarshallablein interfaceMarshallability- Parameters:
object- an object to be marshalled- Returns:
- true, if the specified object can be marshalled, false otherwise
-
createMarshalledValue
Description copied from interface:MarshalledValueFactoryCreates a new marshalled value from the specified object.- Specified by:
createMarshalledValuein interfaceMarshalledValueFactory<ByteBufferMarshaller>- Type Parameters:
V- the value type- Parameters:
object- a value to be marshalled- Returns:
- a marshalled value
-
getMarshallingContext
Description copied from interface:MarshalledValueFactoryThe marshalling context applied to marshalled values created by this factory.- Specified by:
getMarshallingContextin interfaceMarshalledValueFactory<ByteBufferMarshaller>- Returns:
- the marshalling context
-