Package io.apicurio.registry.serde.avro
Class AvroSerdeConfig
java.lang.Object
io.apicurio.registry.resolver.config.AbstractConfig
io.apicurio.registry.resolver.config.SchemaResolverConfig
io.apicurio.registry.serde.config.SerdeConfig
io.apicurio.registry.serde.avro.AvroSerdeConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringUsed by the Avro serde classes to choose anio.apicurio.registry.serde.avro.AvroEncoding, for exampleJSONorBINARY.static final Stringstatic final Stringstatic final StringConfigures the maximum number of entries in the Avro schema parser cache.static final longstatic final Stringstatic final booleanFields inherited from class io.apicurio.registry.serde.config.SerdeConfig
ARTIFACT_RESOLVER_STRATEGY_DEFAULT, CONTRACT_RULES_CACHE_TTL_SECONDS, CONTRACT_RULES_CACHE_TTL_SECONDS_DEFAULT, CONTRACT_RULES_ENABLED, CONTRACT_RULES_ENABLED_DEFAULT, CONTRACT_RULES_FAIL_ON_ERROR, CONTRACT_RULES_FAIL_ON_ERROR_DEFAULT, CONTRACT_RULES_MIGRATION_ENABLED, CONTRACT_RULES_MIGRATION_ENABLED_DEFAULT, CONTRACT_RULES_MIGRATION_TARGET_VERSION, DESERIALIZER_SPECIFIC_KEY_RETURN_CLASS, DESERIALIZER_SPECIFIC_VALUE_RETURN_CLASS, FALLBACK_ARTIFACT_GROUP_ID, FALLBACK_ARTIFACT_ID, FALLBACK_ARTIFACT_PROVIDER, FALLBACK_ARTIFACT_PROVIDER_DEFAULT, FALLBACK_ARTIFACT_VERSION, ID_HANDLER, ID_HANDLER_DEFAULT, IS_KEY, READ_INDEXES, READ_INDEXES_DEFAULT, READ_TYPE_REF, READ_TYPE_REF_DEFAULT, SCHEMA_RESOLVER, SCHEMA_RESOLVER_DEFAULT, SEND_INDEXES, SEND_INDEXES_DEFAULT, SEND_TYPE_REF, SEND_TYPE_REF_DEFAULT, USE_ID, USE_ID_DEFAULT, VALIDATION_ENABLED, VALIDATION_ENABLED_DEFAULTFields inherited from class io.apicurio.registry.resolver.config.SchemaResolverConfig
ARTIFACT_RESOLVER_STRATEGY, AUTH_CLIENT_ID, AUTH_CLIENT_SCOPE, AUTH_CLIENT_SECRET, AUTH_PASSWORD, AUTH_TOKEN_ENDPOINT, AUTH_USERNAME, AUTO_REGISTER_ARTIFACT, AUTO_REGISTER_ARTIFACT_DEFAULT, AUTO_REGISTER_ARTIFACT_IF_EXISTS, AUTO_REGISTER_ARTIFACT_IF_EXISTS_DEFAULT, BACKGROUND_REFRESH_ENABLED, BACKGROUND_REFRESH_ENABLED_DEFAULT, BACKGROUND_REFRESH_EXECUTOR_THREADS, BACKGROUND_REFRESH_EXECUTOR_THREADS_DEFAULT, BACKGROUND_REFRESH_TIMEOUT_MS, BACKGROUND_REFRESH_TIMEOUT_MS_DEFAULT, CACHE_LATEST, CACHE_LATEST_DEFAULT, CANONICALIZE, CANONICALIZE_DEFAULT, CHECK_PERIOD_MS, CHECK_PERIOD_MS_DEFAULT, DEREFERENCE_DEFAULT, DEREFERENCE_SCHEMA, EXPLICIT_ARTIFACT_GROUP_ID, EXPLICIT_ARTIFACT_ID, EXPLICIT_ARTIFACT_VERSION, FAULT_TOLERANT_REFRESH, FAULT_TOLERANT_REFRESH_DEFAULT, FIND_LATEST_ARTIFACT, FIND_LATEST_ARTIFACT_DEFAULT, HTTP_ADAPTER, HTTP_ADAPTER_DEFAULT, OTEL_ENABLED, OTEL_ENABLED_DEFAULT, PROXY_HOST, PROXY_PASSWORD, PROXY_PORT, PROXY_USERNAME, REGISTRY_URL, REGISTRY_URL_VERSION, RETRY_BACKOFF_MS, RETRY_BACKOFF_MS_DEFAULT, RETRY_COUNT, RETRY_COUNT_DEFAULT, SCHEMA_LOCATION, TLS_CERTIFICATES, TLS_TRUST_ALL, TLS_TRUST_ALL_DEFAULT, TLS_TRUSTSTORE_LOCATION, TLS_TRUSTSTORE_PASSWORD, TLS_TRUSTSTORE_TYPE, TLS_TRUSTSTORE_TYPE_DEFAULT, TLS_VERIFY_HOST, TLS_VERIFY_HOST_DEFAULT, USAGE_TELEMETRY_CLIENT_ID, VERTX_INSTANCEFields inherited from class io.apicurio.registry.resolver.config.AbstractConfig
originals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> intReturns the maximum number of entries in the Avro schema parser cache.booleanMethods inherited from class io.apicurio.registry.serde.config.SerdeConfig
getIdHandler, useIdOptionMethods inherited from class io.apicurio.registry.resolver.config.SchemaResolverConfig
autoRegisterArtifact, autoRegisterArtifactIfExists, findLatest, getArtifactResolverStrategy, getAuthClientId, getAuthClientScope, getAuthClientSecret, getAuthPassword, getAuthUsername, getBackgroundRefresh, getBackgroundRefreshExecutorThreads, getBackgroundRefreshTimeout, getCacheLatest, getCheckPeriod, getExplicitArtifactGroupId, getExplicitArtifactId, getExplicitArtifactVersion, getExplicitSchemaLocation, getFaultTolerantRefresh, getHttpAdapter, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getRegistryUrl, getRegistryUrlVersion, getRetryBackoff, getRetryCount, getTlsCertificates, getTlsTrustAll, getTlsTruststoreLocation, getTlsTruststorePassword, getTlsTruststoreType, getTlsVerifyHost, getTokenEndpoint, getUsageTelemetryClientId, getVertx, isCanonicalize, isOtelEnabled, resolveDereferencedMethods inherited from class io.apicurio.registry.resolver.config.AbstractConfig
getBoolean, getBooleanOrFalse, getClass, getDurationNonNegativeMillis, getLongNonNegative, getObject, getString, getStringOneOf, originals
-
Field Details
-
AVRO_ENCODING
Used by the Avro serde classes to choose anio.apicurio.registry.serde.avro.AvroEncoding, for exampleJSONorBINARY. Serializer and Deserializer configuration must match.- See Also:
-
AVRO_ENCODING_JSON
- See Also:
-
AVRO_ENCODING_BINARY
- See Also:
-
AVRO_DATUM_PROVIDER
- See Also:
-
AVRO_DATUM_PROVIDER_DEFAULT
-
USE_SPECIFIC_AVRO_READER
- See Also:
-
USE_SPECIFIC_AVRO_READER_DEFAULT
public static final boolean USE_SPECIFIC_AVRO_READER_DEFAULT- See Also:
-
AVRO_SCHEMA_CACHE_SIZE
Configures the maximum number of entries in the Avro schema parser cache. The cache stores parsed schema results to avoid redundant parsing on repeated calls. Valid values are positive integers.- See Also:
-
AVRO_SCHEMA_CACHE_SIZE_DEFAULT
public static final long AVRO_SCHEMA_CACHE_SIZE_DEFAULT- See Also:
-
-
Constructor Details
-
AvroSerdeConfig
-
-
Method Details
-
getAvroEncoding
-
getAvroDatumProvider
-
useSpecificAvroReader
public boolean useSpecificAvroReader() -
getSchemaCacheSize
public int getSchemaCacheSize()Returns the maximum number of entries in the Avro schema parser cache.- Returns:
- the schema cache size
-
getDefaults
- Overrides:
getDefaultsin classSerdeConfig
-