public final class GapAwareTrackingTokenConverter
extends com.thoughtworks.xstream.converters.collections.CollectionConverter
CollectionConverter implementation to de-/serializer the GapAwareTrackingToken and
org.axonframework.eventsourcing.eventstore.GapAwareTrackingToken.
Necessary due to the ConcurrentSkipListSet used within the
GapAwareTrackingToken, as XStream is incapable to marshall / unmarshall these
Collections from the java.util.concurrent package. In pre-JDK16 times, XStream
would use the com.thoughtworks.xstream.converters.reflection.ReflectionConverter for this.
| Constructor and Description |
|---|
GapAwareTrackingTokenConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
Constructs a
GapAwareTrackingTokenConverter. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
addCurrentElementToCollection, createCollection, populateCollection, populateCollectionpublic GapAwareTrackingTokenConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
GapAwareTrackingTokenConverter.mapper - The mapper to be used by the constructed GapAwareTrackingTokenConverter.public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Convertermarshal in class com.thoughtworks.xstream.converters.collections.CollectionConverterpublic Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterunmarshal in class com.thoughtworks.xstream.converters.collections.CollectionConverterpublic boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class com.thoughtworks.xstream.converters.collections.CollectionConverterCopyright © 2010–2023. All rights reserved.