Class MarshalledValueMarshaller<V,C>
java.lang.Object
org.wildfly.clustering.marshalling.MarshalledValueMarshaller<V,C>
- Type Parameters:
V- the marshalled value typeC- the marshalling context type
- All Implemented Interfaces:
Predicate<Object>, Predicate<Object>, Marshaller<V, MarshalledValue<V,C>>
public class MarshalledValueMarshaller<V,C>
extends Object
implements Marshaller<V, MarshalledValue<V,C>>
Marshaller that stores attribute values using marshalled values.
- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMarshalledValueMarshaller(MarshalledValueFactory<C> factory) Constructs a new marshaller using the specified marshalled value factory. -
Method Summary
Methods 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
-
MarshalledValueMarshaller
Constructs a new marshaller using the specified marshalled value factory.- Parameters:
factory- a marshalled value factory
-
-
Method Details
-
read
Description copied from interface:MarshallerReads a value from its marshalled form.- Specified by:
readin interfaceMarshaller<V,C> - Parameters:
value- the marshalled form- Returns:
- an unmarshalled value
- Throws:
IOException- if the value could not be read
-
write
Description copied from interface:MarshallerWrites a value to its serialized form- Specified by:
writein interfaceMarshaller<V,C> - Parameters:
object- a value to marshal.- Returns:
- the serialized form of the value
-
test
-