public interface SerializationProvider
Note: Providers are encouraged to offer a backward and forward compatible protocol.
Before the actual serialized flux, two bytes are reserved:
majorVersion > current version
should be refused.
A minor version increase implies a compatible protocol change.
Messages of a minorVersion > current version
are parsed, but new
operation will be ignored or rejected.
If message's major version is < current version
, then the
implementation is strongly encouraged to parse and process them.
It is mandatory if only message's code minor version is < current version
.
Implementors are encouraged to implement a descriptive toString()
method for logging purposes.
Modifier and Type | Method and Description |
---|---|
Deserializer |
getDeserializer() |
Serializer |
getSerializer() |
Serializer getSerializer()
Deserializer getDeserializer()
Copyright © 2006-2014 Red Hat, Inc. All Rights Reserved