Interface Marshaller<V,S>
-
- All Superinterfaces:
Marshallability
- All Known Subinterfaces:
ByteBufferMarshaller
- All Known Implementing Classes:
MarshalledValueMarshaller
public interface Marshaller<V,S> extends Marshallability
Marshals an object to and from its serialized form.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Vread(S value)Reads a value from its marshalled form.Swrite(V value)Writes a value to its serialized form-
Methods inherited from interface org.wildfly.clustering.marshalling.spi.Marshallability
isMarshallable
-
-
-
-
Method Detail
-
read
V read(S value) throws IOException
Reads a value from its marshalled form.- Parameters:
value- the marshalled form- Returns:
- an unmarshalled value/
- Throws:
IOException
-
write
S write(V value) throws IOException
Writes a value to its serialized form- Parameters:
a- value to marshal.- Returns:
- the serialized form of the value
- Throws:
IOException
-
-