Interface RevisionResolver
-
- All Known Implementing Classes:
AnnotationRevisionResolver,FixedValueRevisionResolver,MavenArtifactRevisionResolver,SerialVersionUIDRevisionResolver
public interface RevisionResolverInterface towards a mechanism that resolves the revision of a given payload type. Based on this revision, a component is able to recognize whether a serialized version of the payload is compatible with the currently known version of the payload.- Since:
- 2.0
- Author:
- Allard Buijze
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringrevisionOf(Class<?> payloadType)Returns the revision for the givenpayloadType.
-
-
-
Method Detail
-
revisionOf
String revisionOf(Class<?> payloadType)
Returns the revision for the givenpayloadType. The revision is used by upcasters to decide whether they need to process a certain serialized event. Generally, the revision needs to be modified each time the structure of an event has been changed in an incompatible manner.- Parameters:
payloadType- The type for which to return the revision- Returns:
- the revision for the given
payloadType
-
-