Class MultiSourceLegacyTokenTypeMapper
java.lang.Object
io.axoniq.framework.messaging.eventstreaming.MultiSourceLegacyTokenTypeMapper
- All Implemented Interfaces:
LegacyTokenTypeMapper
@Internal
@Deprecated(since="5.2.0",
forRemoval=true)
public final class MultiSourceLegacyTokenTypeMapper
extends Object
implements LegacyTokenTypeMapper
Deprecated, for removal: This API element is subject to removal in a future version.
Temporary bridge for reading Axon Framework 4 multi-source token stores after upgrading. Scheduled for
removal in 5.5.0, once existing stores have migrated to the Axon Framework 5 token class names.
Maps the Axon Framework 4
org.axonframework.eventhandling.MultiSourceTrackingToken class name to the current
MultiSourceTrackingToken, which moved to the Axoniq Framework. This lets a token store written by Axon
Framework 4 be read after upgrading.
Marked Internal for the same reason as the LegacyTokenTypeMapper it implements: it is a migration
bridge, not an application extension point.
- Since:
- 5.2.0
- Author:
- Laura Devriendt
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionMap<String, Class<? extends TrackingToken>> mappings()Deprecated, for removal: This API element is subject to removal in a future version.Returns Axon Framework 4 token class names mapped to their current Axon Framework 5 classes, keyed by the fully qualified class name as stored in the token type column.
-
Constructor Details
-
MultiSourceLegacyTokenTypeMapper
public MultiSourceLegacyTokenTypeMapper()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
mappings
Deprecated, for removal: This API element is subject to removal in a future version.Returns Axon Framework 4 token class names mapped to their current Axon Framework 5 classes, keyed by the fully qualified class name as stored in the token type column. Must not returnnull. If a key is already mapped by Axon Framework, the built-in mapping is kept and the contributed one is ignored.Maps the Axon Framework 4
MultiSourceTrackingTokenname to the currentMultiSourceTrackingToken.- Specified by:
mappingsin interfaceLegacyTokenTypeMapper- Returns:
- the Axon Framework 4 token class names mapped to their current Axon Framework 5 classes, never
null
-