You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Provides serialization and deserialization support for nullable instances of TrackingToken.
55
+
* This serializer uses [replyTokenContextSerializer] to serialize the context field and now only [String] type or null value is supported!
56
+
*
57
+
* @see TrackingToken
54
58
*/
55
59
val trackingTokenSerializer =PolymorphicSerializer(TrackingToken::class).nullable
60
+
61
+
/**
62
+
* Serializer for the [ReplayToken.context], represented as a nullable String.
63
+
* This context is typically used to provide additional information during token replay operations.
64
+
*
65
+
* This serializer is used by [trackingTokenSerializer] to serialize the context field and now only [String] type or null value is supported!
66
+
* Sadly enough, there's no straightforward solution to support [Any]; not without adjusting the context field of the ReplayToken in Axon Framework itself.
67
+
* That is, however, a breaking change, and as such, cannot be done till version 5.0.0 of the Axon Framework.
68
+
* This also allow more complex objects as the context, although it requires the user to do the de-/serialization to/from String, instead of the Axon Framework itself.
69
+
* Look at AxonSerializersTest, case `replay token with complex object as String context` for an example how to handle that using Kotlin Serialization.
70
+
*
71
+
* @see ReplayToken.context
72
+
*/
56
73
val replyTokenContextSerializer =String.serializer().nullable
57
74
58
75
/**
59
-
* TODO - documentation
76
+
* Module defining serializers for Axon Framework's core event handling and messaging components.
77
+
* This module includes serializers for TrackingTokens, ScheduleTokens, and ResponseTypes, enabling
78
+
* seamless integration with Axon-based applications.
* The [ReplayToken.context] value can be only a String or null. See [replyTokenContextSerializer] for more information how to handle the context field.
0 commit comments