Interface MarshalledValueFactory<C>
- Type Parameters:
C- the marshalling context type
- All Known Implementing Classes:
ByteBufferMarshalledKeyFactory, ByteBufferMarshalledValueFactory
public interface MarshalledValueFactory<C>
extends org.wildfly.clustering.function.Predicate<Object>
Factory for creating marshalled values.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.function.Predicate
ALWAYS, NEVER -
Method Summary
Modifier and TypeMethodDescription<T> MarshalledValue<T, C> createMarshalledValue(T object) Creates a new marshalled value from the specified object.The marshalling context applied to marshalled values created by this factory.Methods inherited from interface org.wildfly.clustering.function.Predicate
and, compose, composeBinary, composeDouble, composeInt, composeLong, handle, negate, or, xor
-
Method Details
-
createMarshalledValue
Creates a new marshalled value from the specified object.- Type Parameters:
T- the value type- Parameters:
object- a value to be marshalled- Returns:
- a marshalled value
-
getMarshallingContext
C getMarshallingContext()The marshalling context applied to marshalled values created by this factory.- Returns:
- the marshalling context
-