Class ByteBufferMarshalledKeyFactory
java.lang.Object
org.wildfly.clustering.marshalling.ByteBufferMarshalledValueFactory
org.wildfly.clustering.marshalling.ByteBufferMarshalledKeyFactory
- All Implemented Interfaces:
Predicate<Object>, Predicate<Object>, MarshalledValueFactory<ByteBufferMarshaller>
Factory for creating a
ByteBufferMarshalledKey.- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferMarshalledKeyFactory(ByteBufferMarshaller marshaller) Creates a factory of a marshalled key. -
Method Summary
Modifier and TypeMethodDescription<K> ByteBufferMarshalledKey<K> createMarshalledValue(K object) Creates a new marshalled value from the specified object.Methods inherited from class ByteBufferMarshalledValueFactory
getMarshallingContext, testMethods 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
-
ByteBufferMarshalledKeyFactory
Creates a factory of a marshalled key.- Parameters:
marshaller- a marshaller
-
-
Method Details
-
createMarshalledValue
Description copied from interface:MarshalledValueFactoryCreates a new marshalled value from the specified object.- Specified by:
createMarshalledValuein interfaceMarshalledValueFactory<ByteBufferMarshaller>- Overrides:
createMarshalledValuein classByteBufferMarshalledValueFactory- Type Parameters:
K- the value type- Parameters:
object- a value to be marshalled- Returns:
- a marshalled value
-