Enum Class ConverterProperties.ConverterType

java.lang.Object
java.lang.Enum<ConverterProperties.ConverterType>
org.axonframework.extension.springboot.ConverterProperties.ConverterType
All Implemented Interfaces:
Serializable, Comparable<ConverterProperties.ConverterType>, Constable
Enclosing class:
ConverterProperties

public static enum ConverterProperties.ConverterType extends Enum<ConverterProperties.ConverterType>
Enumerates different possible standard Converters available in Axon Framework.
  • Enum Constant Details

    • AVRO

      public static final ConverterProperties.ConverterType AVRO
      Uses Avro-based Converter to convert objects into bytes as specified by Avro Specification using single object encoding.
    • CBOR

      public static final ConverterProperties.ConverterType CBOR
      Uses Jackson's CBORMapper to convert objects into CBOR.

      This format is not human-readable, but can save on the size of (e.g.) Messages. When using this Converter, make sure your tables are BLOBs, not CLOBs, as converting the byte[] to a String will corrupt the data.

    • JACKSON

      public static final ConverterProperties.ConverterType JACKSON
      Uses Jackson's ObjectMapper to convert objects into JSON.

      Provides highly interoperable JSON output, but does require the objects to adhere to a certain structure. The Jackson based serializer is generally suitable as a messages Converter.

    • DEFAULT

      public static final ConverterProperties.ConverterType DEFAULT
      Defines that the default serializer should be used.

      For the general Converter, this means the JacksonConverter is used. For the messages Converter, this means the general Converter is used. Similarly, the events Converter will default to the messages Converter (or the general Converter if the messages Converter has not been specified).

  • Method Details

    • values

      public static ConverterProperties.ConverterType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConverterProperties.ConverterType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null