All Downloads are FREE. Search and download functionalities are using the official Maven repository.

type.AvroSchemaSerializedObject.kt Maven / Gradle / Ivy

package io.holixon.axon.avro.serializer.type

import org.apache.avro.Schema
import org.axonframework.serialization.SimpleSerializedObject

/**
 * Axon simple serialized object using Avro Simple Object Encoded for data.
 */
open class AvroSchemaSerializedObject(data : T, dataType : Class, serializedType: AvroSchemaSerializedType) : SimpleSerializedObject(data, dataType,serializedType) {

  constructor(data:T, dataType: Class, schema:Schema) : this(data,dataType, AvroSchemaSerializedType(schema))

  val simpleSerializedObject by lazy { SimpleSerializedObject(data, dataType, serializedType) }

  override fun toString(): String = "AvroSchemaSerializedObject[${simpleSerializedObject.type}]"

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy