public class FixedValueRevisionResolver extends Object implements RevisionResolver
Constructor and Description |
---|
FixedValueRevisionResolver(String revision)
Initializes the FixedValueRevisionResolver to always return the given
revision , when asked. |
Modifier and Type | Method and Description |
---|---|
String |
revisionOf(Class<?> payloadType)
Returns the revision for the given
payloadType . |
public FixedValueRevisionResolver(String revision)
revision
, when asked.revision
- The revision to returnpublic String revisionOf(Class<?> payloadType)
RevisionResolver
payloadType
.
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.revisionOf
in interface RevisionResolver
payloadType
- The type for which to return the revisionpayloadType
Copyright © 2010–2017. All rights reserved.