Class SchemaResolverConfig


  • public class SchemaResolverConfig
    extends Object
    Contains the DefaultSchemaResolver configuration properties.
    Author:
    eric.wittmann@gmail.com, Fabian Martinez
    • Field Detail

      • ARTIFACT_RESOLVER_STRATEGY_DEFAULT

        public static final String ARTIFACT_RESOLVER_STRATEGY_DEFAULT
        Uses the ArtifactReference available for each record. Requires Metadata.artifactReference() to be set. Note this default artifact resolver strategy differs in behavior from the classic Kafka serdes ArtifactResolverStrategy
      • AUTO_REGISTER_ARTIFACT

        public static final String AUTO_REGISTER_ARTIFACT
        Optional, boolean to indicate whether serializer classes should attempt to create an artifact in the registry. Note: JsonSchema serializer does not support this feature yet.
        See Also:
        Constant Field Values
      • AUTO_REGISTER_ARTIFACT_DEFAULT

        public static final boolean AUTO_REGISTER_ARTIFACT_DEFAULT
        See Also:
        Constant Field Values
      • AUTO_REGISTER_ARTIFACT_IF_EXISTS

        public static final String AUTO_REGISTER_ARTIFACT_IF_EXISTS
        Optional, one of IfExists to indicate the behavior of the client when there is a conflict creating an artifact because the artifact already exists.
        See Also:
        Constant Field Values
      • AUTO_REGISTER_ARTIFACT_IF_EXISTS_DEFAULT

        public static final String AUTO_REGISTER_ARTIFACT_IF_EXISTS_DEFAULT
      • FIND_LATEST_ARTIFACT_DEFAULT

        public static final boolean FIND_LATEST_ARTIFACT_DEFAULT
        See Also:
        Constant Field Values
      • REGISTRY_URL

        public static final String REGISTRY_URL
        The URL of the Apicurio Registry. Required when using any Apicurio Registry serde class (serializer or deserializer).
        See Also:
        Constant Field Values
      • AUTH_TOKEN_ENDPOINT

        public static final String AUTH_TOKEN_ENDPOINT
        The URL of the Token Endpoint. Required when using any Apicurio Registry serde class (serializer or deserializer) against a secured Apicurio Registry and AUTH_SERVICE_URL is not specified.
        See Also:
        Constant Field Values
      • AUTH_SERVICE_URL

        public static final String AUTH_SERVICE_URL
        The URL of the Auth Service. Required when using any Apicurio Registry serde class (serializer or deserializer) against a secured Apicurio Registry.
        See Also:
        Constant Field Values
      • CHECK_PERIOD_MS

        public static final String CHECK_PERIOD_MS
        Indicates how long to cache artifacts before auto-eviction. If not included, the artifact will be fetched every time.
        See Also:
        Constant Field Values
      • CHECK_PERIOD_MS_DEFAULT

        public static final long CHECK_PERIOD_MS_DEFAULT
        See Also:
        Constant Field Values
      • RETRY_COUNT

        public static final String RETRY_COUNT
        If a schema can not be retrieved from the Registry, serdes may retry a number of times. This configuration option controls the number of retries before failing. Valid values are non-negative integers.
        See Also:
        Constant Field Values
      • RETRY_BACKOFF_MS

        public static final String RETRY_BACKOFF_MS
        If a schema can not be be retrieved from the Registry, serdes may retry a number of times. This configuration option controls the delay between the retry attempts, in milliseconds. Valid values are non-negative integers.
        See Also:
        Constant Field Values
      • RETRY_BACKOFF_MS_DEFAULT

        public static final long RETRY_BACKOFF_MS_DEFAULT
        See Also:
        Constant Field Values
      • REQUEST_HEADERS_PREFIX

        public static final String REQUEST_HEADERS_PREFIX
        Config prefix that allows configuration of arbitrary HTTP client request headers used by the Registry REST Client in the serde class when communicating with the Registry. For example, this could be used to pass authentication information: apicurio.registry.request.headers.Authorization=BASIC Y2tlbnQ6a3J5cHQwbnIwY2tzIQ==
        See Also:
        Constant Field Values
      • REQUEST_TRUSTSTORE_LOCATION

        public static final String REQUEST_TRUSTSTORE_LOCATION
        Location of a trust store to use when connecting to the registry via SSL.
        See Also:
        Constant Field Values
      • REQUEST_TRUSTSTORE_TYPE

        public static final String REQUEST_TRUSTSTORE_TYPE
        Type of trust store to use when connecting to the registry via SSL.
        See Also:
        Constant Field Values
      • REQUEST_TRUSTSTORE_PASSWORD

        public static final String REQUEST_TRUSTSTORE_PASSWORD
        Password of the trust store to use when connecting to the registry via SSL.
        See Also:
        Constant Field Values
      • REQUEST_KEYSTORE_LOCATION

        public static final String REQUEST_KEYSTORE_LOCATION
        Location of a keystore to use when e.g. connecting to the registry via mTLS.
        See Also:
        Constant Field Values
      • REQUEST_KEYSTORE_TYPE

        public static final String REQUEST_KEYSTORE_TYPE
        Type of keystore to use when e.g. connecting to the registry via mTLS.
        See Also:
        Constant Field Values
      • REQUEST_KEYSTORE_PASSWORD

        public static final String REQUEST_KEYSTORE_PASSWORD
        Password of the keystore to use when e.g. connecting to the registry via mTLS.
        See Also:
        Constant Field Values
      • REQUEST_KEY_PASSWORD

        public static final String REQUEST_KEY_PASSWORD
        Key password used when e.g. connecting to the registry via mTLS.
        See Also:
        Constant Field Values
      • DEREFERENCE_SCHEMA

        public static final String DEREFERENCE_SCHEMA
        Used to indicate the auto-register feature to try to dereference the schema before registering it in Registry. Only applicable when AUTO_REGISTER_ARTIFACT is enabled.
        See Also:
        Constant Field Values
      • DEREFERENCE_SCHEMA_DEFAULT

        public static final boolean DEREFERENCE_SCHEMA_DEFAULT
        See Also:
        Constant Field Values
    • Constructor Detail

      • SchemaResolverConfig

        public SchemaResolverConfig()