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:
Marshallability,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
Fields inherited from interface org.wildfly.clustering.marshalling.Marshallability
TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMarshallable(Object object) Indicates whether the specified object can be marshalled.read(MarshalledValue<V, C> value) Reads a value from its marshalled form.Writes a value to its serialized form
-
Constructor Details
-
MarshalledValueMarshaller
-
-
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
-
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
-