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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultiSourceLegacyTokenTypeMapper

      public MultiSourceLegacyTokenTypeMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • mappings

      public Map<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. Must not return null. 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 MultiSourceTrackingToken name to the current MultiSourceTrackingToken.

      Specified by:
      mappings in interface LegacyTokenTypeMapper
      Returns:
      the Axon Framework 4 token class names mapped to their current Axon Framework 5 classes, never null