Record Class AvroConverterStrategyConfiguration
java.lang.Object
java.lang.Record
org.axonframework.conversion.avro.AvroConverterStrategyConfiguration
- Record Components:
performAvroCompatibilityCheck- Should schema compatibility check be performed prio conversion.includeSchemasInStackTraces- Should Avro schemas be included into stack traces on errors.
public record AvroConverterStrategyConfiguration(boolean performAvroCompatibilityCheck, boolean includeSchemasInStackTraces)
extends Record
Configuration for the Avro converter strategy.
- Since:
- 4.11.0
- Author:
- Simon Zambrovski, Jan Galinski
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AvroConverterStrategyConfigurationDefault configuration. -
Constructor Summary
ConstructorsConstructorDescriptionAvroConverterStrategyConfiguration(boolean performAvroCompatibilityCheck, boolean includeSchemasInStackTraces) Creates an instance of aAvroConverterStrategyConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeSchemasInStackTracesrecord component.booleanReturns the value of theperformAvroCompatibilityCheckrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
Default configuration.
-
-
Constructor Details
-
AvroConverterStrategyConfiguration
public AvroConverterStrategyConfiguration(boolean performAvroCompatibilityCheck, boolean includeSchemasInStackTraces) Creates an instance of aAvroConverterStrategyConfigurationrecord class.- Parameters:
performAvroCompatibilityCheck- the value for theperformAvroCompatibilityCheckrecord componentincludeSchemasInStackTraces- the value for theincludeSchemasInStackTracesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
performAvroCompatibilityCheck
public boolean performAvroCompatibilityCheck()Returns the value of theperformAvroCompatibilityCheckrecord component.- Returns:
- the value of the
performAvroCompatibilityCheckrecord component
-
includeSchemasInStackTraces
public boolean includeSchemasInStackTraces()Returns the value of theincludeSchemasInStackTracesrecord component.- Returns:
- the value of the
includeSchemasInStackTracesrecord component
-