Class ByteBufferMarshalledValueFactory
java.lang.Object
org.wildfly.clustering.marshalling.ByteBufferMarshalledValueFactory
- All Implemented Interfaces:
Predicate<Object>, Predicate<Object>, MarshalledValueFactory<ByteBufferMarshaller>
- Direct Known Subclasses:
ByteBufferMarshalledKeyFactory
public class ByteBufferMarshalledValueFactory
extends Object
implements MarshalledValueFactory<ByteBufferMarshaller>
Factory for creating a
ByteBufferMarshalledValue.- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferMarshalledValueFactory(ByteBufferMarshaller marshaller) Creates a new marshalled value factory with the specified marshaller. -
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.booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Predicate
and, compose, composeBinary, composeDouble, composeInt, composeLong, handle, negate, or, xor
-
Constructor Details
-
ByteBufferMarshalledValueFactory
Creates a new marshalled value factory with the specified marshaller.- Parameters:
marshaller- a marshaller
-
-
Method Details
-
test
-
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
-