Interface Marshaller<V,S>
- Type Parameters:
V- the value typeS- the marshalled type
- All Superinterfaces:
Marshallability
- All Known Subinterfaces:
ByteBufferMarshaller
- All Known Implementing Classes:
AbstractByteBufferMarshaller,MarshalledValueMarshaller
Marshals an object to and from its serialized form.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.marshalling.Marshallability
TRUE -
Method Summary
Methods inherited from interface org.wildfly.clustering.marshalling.Marshallability
isMarshallable
-
Method Details
-
identity
An identity marshaller that does no marshalling.- Type Parameters:
T- the value type- Returns:
- an identity marshaller
-
read
Reads a value from its marshalled form.- Parameters:
value- the marshalled form- Returns:
- an unmarshalled value
- Throws:
IOException- if the value could not be read
-
write
Writes a value to its serialized form- Parameters:
value- a value to marshal.- Returns:
- the serialized form of the value
- Throws:
IOException- if the value could not be written
-