Interface KafkaEndpointBuilderFactory.KafkaEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
,org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
,KafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
,KafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Enclosing interface:
- KafkaEndpointBuilderFactory
public static interface KafkaEndpointBuilderFactory.KafkaEndpointBuilder
extends KafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder, KafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
Builder for endpoint for the Kafka component.
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties
(String key, Object value) Sets additional properties for either kafka consumer or kafka producer in case they can't be set directly on the camel configurations (e.g: new Kafka properties that are not reflected yet in Camel configurations), the properties have to be prefixed with additionalProperties..additionalProperties
(Map values) Sets additional properties for either kafka consumer or kafka producer in case they can't be set directly on the camel configurations (e.g: new Kafka properties that are not reflected yet in Camel configurations), the properties have to be prefixed with additionalProperties..advanced()
URL of the Kafka brokers to use.The client id is a user-specified string sent in each request to help trace calls.headerFilterStrategy
(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message.headerFilterStrategy
(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message.interceptorClasses
(String interceptorClasses) Sets interceptors for producer or consumers.kerberosBeforeReloginMinTime
(Integer kerberosBeforeReloginMinTime) Login thread sleep time between refresh attempts.kerberosBeforeReloginMinTime
(String kerberosBeforeReloginMinTime) Login thread sleep time between refresh attempts.kerberosInitCmd
(String kerberosInitCmd) Kerberos kinit command path.kerberosPrincipalToLocalRules
(String kerberosPrincipalToLocalRules) A list of rules for mapping from principal names to short names (typically operating system usernames).kerberosRenewJitter
(Double kerberosRenewJitter) Percentage of random jitter added to the renewal time.kerberosRenewJitter
(String kerberosRenewJitter) Percentage of random jitter added to the renewal time.kerberosRenewWindowFactor
(Double kerberosRenewWindowFactor) Login thread will sleep until the specified window factor of time from last refresh to ticket's expiry has been reached, at which time it will try to renew the ticket.kerberosRenewWindowFactor
(String kerberosRenewWindowFactor) Login thread will sleep until the specified window factor of time from last refresh to ticket's expiry has been reached, at which time it will try to renew the ticket.reconnectBackoffMaxMs
(Integer reconnectBackoffMaxMs) The maximum amount of time in milliseconds to wait when reconnecting to a broker that has repeatedly failed to connect.reconnectBackoffMaxMs
(String reconnectBackoffMaxMs) The maximum amount of time in milliseconds to wait when reconnecting to a broker that has repeatedly failed to connect.saslJaasConfig
(String saslJaasConfig) Expose the kafka sasl.jaas.config parameter Example: org.apache.kafka.common.security.plain.PlainLoginModule required username=USERNAME password=PASSWORD;.saslKerberosServiceName
(String saslKerberosServiceName) The Kerberos principal name that Kafka runs as.saslMechanism
(String saslMechanism) The Simple Authentication and Security Layer (SASL) Mechanism used.schemaRegistryURL
(String schemaRegistryURL) URL of the Confluent Platform schema registry servers to use.securityProtocol
(String securityProtocol) Protocol used to communicate with brokers.shutdownTimeout
(int shutdownTimeout) Timeout in milliseconds to wait gracefully for the consumer or producer to shutdown and terminate its worker threads.shutdownTimeout
(String shutdownTimeout) Timeout in milliseconds to wait gracefully for the consumer or producer to shutdown and terminate its worker threads.sslCipherSuites
(String sslCipherSuites) A list of cipher suites.sslContextParameters
(String sslContextParameters) SSL configuration using a Camel SSLContextParameters object.sslContextParameters
(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) SSL configuration using a Camel SSLContextParameters object.sslEnabledProtocols
(String sslEnabledProtocols) The list of protocols enabled for SSL connections.sslEndpointAlgorithm
(String sslEndpointAlgorithm) The endpoint identification algorithm to validate server hostname using server certificate.sslKeymanagerAlgorithm
(String sslKeymanagerAlgorithm) The algorithm used by key manager factory for SSL connections.sslKeyPassword
(String sslKeyPassword) The password of the private key in the key store file or the PEM key specified in sslKeystoreKey.sslKeystoreLocation
(String sslKeystoreLocation) The location of the key store file.sslKeystorePassword
(String sslKeystorePassword) The store password for the key store file.sslKeystoreType
(String sslKeystoreType) The file format of the key store file.sslProtocol
(String sslProtocol) The SSL protocol used to generate the SSLContext.sslProvider
(String sslProvider) The name of the security provider used for SSL connections.sslTrustmanagerAlgorithm
(String sslTrustmanagerAlgorithm) The algorithm used by trust manager factory for SSL connections.sslTruststoreLocation
(String sslTruststoreLocation) The location of the trust store file.sslTruststorePassword
(String sslTruststorePassword) The password for the trust store file.sslTruststoreType
(String sslTruststoreType) The file format of the trust store file.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.KafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
allowManualCommit, allowManualCommit, autoCommitEnable, autoCommitEnable, autoCommitIntervalMs, autoCommitIntervalMs, autoOffsetReset, breakOnFirstError, breakOnFirstError, checkCrcs, checkCrcs, commitTimeoutMs, commitTimeoutMs, consumerRequestTimeoutMs, consumerRequestTimeoutMs, consumersCount, consumersCount, fetchMaxBytes, fetchMaxBytes, fetchMinBytes, fetchMinBytes, fetchWaitMaxMs, fetchWaitMaxMs, groupId, groupInstanceId, headerDeserializer, headerDeserializer, heartbeatIntervalMs, heartbeatIntervalMs, keyDeserializer, maxPartitionFetchBytes, maxPartitionFetchBytes, maxPollIntervalMs, maxPollIntervalMs, maxPollRecords, maxPollRecords, offsetRepository, offsetRepository, partitionAssignor, pollOnError, pollOnError, pollTimeoutMs, pollTimeoutMs, seekTo, seekTo, sessionTimeoutMs, sessionTimeoutMs, specificAvroReader, specificAvroReader, topicIsPattern, topicIsPattern, valueDeserializer
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.KafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
batchWithIndividualHeaders, batchWithIndividualHeaders, bufferMemorySize, bufferMemorySize, compressionCodec, connectionMaxIdleMs, connectionMaxIdleMs, deliveryTimeoutMs, deliveryTimeoutMs, enableIdempotence, enableIdempotence, headerSerializer, headerSerializer, key, keySerializer, lingerMs, lingerMs, maxBlockMs, maxBlockMs, maxInFlightRequest, maxInFlightRequest, maxRequestSize, maxRequestSize, metadataMaxAgeMs, metadataMaxAgeMs, metricReporters, metricsSampleWindowMs, metricsSampleWindowMs, noOfMetricsSample, noOfMetricsSample, partitioner, partitionKey, partitionKey, producerBatchSize, producerBatchSize, queueBufferingMaxMessages, queueBufferingMaxMessages, receiveBufferBytes, receiveBufferBytes, reconnectBackoffMs, reconnectBackoffMs, recordMetadata, recordMetadata, requestRequiredAcks, requestTimeoutMs, requestTimeoutMs, retries, retries, retryBackoffMs, retryBackoffMs, sendBufferBytes, sendBufferBytes, useIterator, useIterator, valueSerializer, workerPool, workerPool, workerPoolCoreSize, workerPoolCoreSize, workerPoolMaxSize, workerPoolMaxSize
-
Method Details
-
advanced
- Specified by:
advanced
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
advanced
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
-
additionalProperties
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder additionalProperties(String key, Object value) Sets additional properties for either kafka consumer or kafka producer in case they can't be set directly on the camel configurations (e.g: new Kafka properties that are not reflected yet in Camel configurations), the properties have to be prefixed with additionalProperties.. E.g: additionalProperties.transactional.id=12345&additionalProperties.schema.registry.url=http://localhost:8811/avro. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the additionalProperties(String, Object) method to add a value (call the method multiple times to set more values). Group: common- Specified by:
additionalProperties
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
additionalProperties
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
key
- the option keyvalue
- the option value- Returns:
- the dsl builder
-
additionalProperties
Sets additional properties for either kafka consumer or kafka producer in case they can't be set directly on the camel configurations (e.g: new Kafka properties that are not reflected yet in Camel configurations), the properties have to be prefixed with additionalProperties.. E.g: additionalProperties.transactional.id=12345&additionalProperties.schema.registry.url=http://localhost:8811/avro. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the additionalProperties(String, Object) method to add a value (call the method multiple times to set more values). Group: common- Specified by:
additionalProperties
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
additionalProperties
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
values
- the values- Returns:
- the dsl builder
-
brokers
URL of the Kafka brokers to use. The format is host1:port1,host2:port2, and the list can be a subset of brokers or a VIP pointing to a subset of brokers. This option is known as bootstrap.servers in the Kafka documentation. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
brokers
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
brokers
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
brokers
- the value to set- Returns:
- the dsl builder
-
clientId
The client id is a user-specified string sent in each request to help trace calls. It should logically identify the application making the request. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
clientId
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
clientId
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
clientId
- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: common- Specified by:
headerFilterStrategy
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
headerFilterStrategy
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
headerFilterStrategy
- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder headerFilterStrategy(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: common- Specified by:
headerFilterStrategy
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
headerFilterStrategy
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
headerFilterStrategy
- the value to set- Returns:
- the dsl builder
-
reconnectBackoffMaxMs
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder reconnectBackoffMaxMs(Integer reconnectBackoffMaxMs) The maximum amount of time in milliseconds to wait when reconnecting to a broker that has repeatedly failed to connect. If provided, the backoff per host will increase exponentially for each consecutive connection failure, up to this maximum. After calculating the backoff increase, 20% random jitter is added to avoid connection storms. The option is a: <code>java.lang.Integer</code> type. Default: 1000 Group: common- Specified by:
reconnectBackoffMaxMs
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
reconnectBackoffMaxMs
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
reconnectBackoffMaxMs
- the value to set- Returns:
- the dsl builder
-
reconnectBackoffMaxMs
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder reconnectBackoffMaxMs(String reconnectBackoffMaxMs) The maximum amount of time in milliseconds to wait when reconnecting to a broker that has repeatedly failed to connect. If provided, the backoff per host will increase exponentially for each consecutive connection failure, up to this maximum. After calculating the backoff increase, 20% random jitter is added to avoid connection storms. The option will be converted to a <code>java.lang.Integer</code> type. Default: 1000 Group: common- Specified by:
reconnectBackoffMaxMs
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
reconnectBackoffMaxMs
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
reconnectBackoffMaxMs
- the value to set- Returns:
- the dsl builder
-
shutdownTimeout
Timeout in milliseconds to wait gracefully for the consumer or producer to shutdown and terminate its worker threads. The option is a: <code>int</code> type. Default: 30000 Group: common- Specified by:
shutdownTimeout
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
shutdownTimeout
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
shutdownTimeout
- the value to set- Returns:
- the dsl builder
-
shutdownTimeout
Timeout in milliseconds to wait gracefully for the consumer or producer to shutdown and terminate its worker threads. The option will be converted to a <code>int</code> type. Default: 30000 Group: common- Specified by:
shutdownTimeout
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
shutdownTimeout
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
shutdownTimeout
- the value to set- Returns:
- the dsl builder
-
schemaRegistryURL
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder schemaRegistryURL(String schemaRegistryURL) URL of the Confluent Platform schema registry servers to use. The format is host1:port1,host2:port2. This is known as schema.registry.url in the Confluent Platform documentation. This option is only available in the Confluent Platform (not standard Apache Kafka). The option is a: <code>java.lang.String</code> type. Group: confluent- Specified by:
schemaRegistryURL
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
schemaRegistryURL
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
schemaRegistryURL
- the value to set- Returns:
- the dsl builder
-
interceptorClasses
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder interceptorClasses(String interceptorClasses) Sets interceptors for producer or consumers. Producer interceptors have to be classes implementing org.apache.kafka.clients.producer.ProducerInterceptor Consumer interceptors have to be classes implementing org.apache.kafka.clients.consumer.ConsumerInterceptor Note that if you use Producer interceptor on a consumer it will throw a class cast exception in runtime. The option is a: <code>java.lang.String</code> type. Group: monitoring- Specified by:
interceptorClasses
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
interceptorClasses
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
interceptorClasses
- the value to set- Returns:
- the dsl builder
-
kerberosBeforeReloginMinTime
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosBeforeReloginMinTime(Integer kerberosBeforeReloginMinTime) Login thread sleep time between refresh attempts. The option is a: <code>java.lang.Integer</code> type. Default: 60000 Group: security- Specified by:
kerberosBeforeReloginMinTime
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosBeforeReloginMinTime
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosBeforeReloginMinTime
- the value to set- Returns:
- the dsl builder
-
kerberosBeforeReloginMinTime
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosBeforeReloginMinTime(String kerberosBeforeReloginMinTime) Login thread sleep time between refresh attempts. The option will be converted to a <code>java.lang.Integer</code> type. Default: 60000 Group: security- Specified by:
kerberosBeforeReloginMinTime
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosBeforeReloginMinTime
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosBeforeReloginMinTime
- the value to set- Returns:
- the dsl builder
-
kerberosInitCmd
Kerberos kinit command path. Default is /usr/bin/kinit. The option is a: <code>java.lang.String</code> type. Default: /usr/bin/kinit Group: security- Specified by:
kerberosInitCmd
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosInitCmd
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosInitCmd
- the value to set- Returns:
- the dsl builder
-
kerberosPrincipalToLocalRules
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosPrincipalToLocalRules(String kerberosPrincipalToLocalRules) A list of rules for mapping from principal names to short names (typically operating system usernames). The rules are evaluated in order and the first rule that matches a principal name is used to map it to a short name. Any later rules in the list are ignored. By default, principal names of the form {username}/{hostname}{REALM} are mapped to {username}. For more details on the format please see the security authorization and acls documentation (at the Apache Kafka project). Multiple values can be separated by comma. The option is a: <code>java.lang.String</code> type. Default: DEFAULT Group: security- Specified by:
kerberosPrincipalToLocalRules
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosPrincipalToLocalRules
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosPrincipalToLocalRules
- the value to set- Returns:
- the dsl builder
-
kerberosRenewJitter
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosRenewJitter(Double kerberosRenewJitter) Percentage of random jitter added to the renewal time. The option is a: <code>java.lang.Double</code> type. Default: 0.05 Group: security- Specified by:
kerberosRenewJitter
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosRenewJitter
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosRenewJitter
- the value to set- Returns:
- the dsl builder
-
kerberosRenewJitter
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosRenewJitter(String kerberosRenewJitter) Percentage of random jitter added to the renewal time. The option will be converted to a <code>java.lang.Double</code> type. Default: 0.05 Group: security- Specified by:
kerberosRenewJitter
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosRenewJitter
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosRenewJitter
- the value to set- Returns:
- the dsl builder
-
kerberosRenewWindowFactor
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosRenewWindowFactor(Double kerberosRenewWindowFactor) Login thread will sleep until the specified window factor of time from last refresh to ticket's expiry has been reached, at which time it will try to renew the ticket. The option is a: <code>java.lang.Double</code> type. Default: 0.8 Group: security- Specified by:
kerberosRenewWindowFactor
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosRenewWindowFactor
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosRenewWindowFactor
- the value to set- Returns:
- the dsl builder
-
kerberosRenewWindowFactor
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder kerberosRenewWindowFactor(String kerberosRenewWindowFactor) Login thread will sleep until the specified window factor of time from last refresh to ticket's expiry has been reached, at which time it will try to renew the ticket. The option will be converted to a <code>java.lang.Double</code> type. Default: 0.8 Group: security- Specified by:
kerberosRenewWindowFactor
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
kerberosRenewWindowFactor
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
kerberosRenewWindowFactor
- the value to set- Returns:
- the dsl builder
-
saslJaasConfig
Expose the kafka sasl.jaas.config parameter Example: org.apache.kafka.common.security.plain.PlainLoginModule required username=USERNAME password=PASSWORD;. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
saslJaasConfig
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
saslJaasConfig
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
saslJaasConfig
- the value to set- Returns:
- the dsl builder
-
saslKerberosServiceName
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder saslKerberosServiceName(String saslKerberosServiceName) The Kerberos principal name that Kafka runs as. This can be defined either in Kafka's JAAS config or in Kafka's config. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
saslKerberosServiceName
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
saslKerberosServiceName
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
saslKerberosServiceName
- the value to set- Returns:
- the dsl builder
-
saslMechanism
The Simple Authentication and Security Layer (SASL) Mechanism used. For the valid values see http://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml. The option is a: <code>java.lang.String</code> type. Default: GSSAPI Group: security- Specified by:
saslMechanism
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
saslMechanism
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
saslMechanism
- the value to set- Returns:
- the dsl builder
-
securityProtocol
Protocol used to communicate with brokers. SASL_PLAINTEXT, PLAINTEXT, SASL_SSL and SSL are supported. The option is a: <code>java.lang.String</code> type. Default: PLAINTEXT Group: security- Specified by:
securityProtocol
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
securityProtocol
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
securityProtocol
- the value to set- Returns:
- the dsl builder
-
sslCipherSuites
A list of cipher suites. This is a named combination of authentication, encryption, MAC and key exchange algorithm used to negotiate the security settings for a network connection using TLS or SSL network protocol. By default all the available cipher suites are supported. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslCipherSuites
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslCipherSuites
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslCipherSuites
- the value to set- Returns:
- the dsl builder
-
sslContextParameters
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) SSL configuration using a Camel SSLContextParameters object. If configured it's applied before the other SSL endpoint parameters. NOTE: Kafka only supports loading keystore from file locations, so prefix the location with file: in the KeyStoreParameters.resource option. The option is a: <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security- Specified by:
sslContextParameters
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslContextParameters
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslContextParameters
- the value to set- Returns:
- the dsl builder
-
sslContextParameters
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslContextParameters(String sslContextParameters) SSL configuration using a Camel SSLContextParameters object. If configured it's applied before the other SSL endpoint parameters. NOTE: Kafka only supports loading keystore from file locations, so prefix the location with file: in the KeyStoreParameters.resource option. The option will be converted to a <code>org.apache.camel.support.jsse.SSLContextParameters</code> type. Group: security- Specified by:
sslContextParameters
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslContextParameters
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslContextParameters
- the value to set- Returns:
- the dsl builder
-
sslEnabledProtocols
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslEnabledProtocols(String sslEnabledProtocols) The list of protocols enabled for SSL connections. The default is TLSv1.2,TLSv1.3 when running with Java 11 or newer, TLSv1.2 otherwise. With the default value for Java 11, clients and servers will prefer TLSv1.3 if both support it and fallback to TLSv1.2 otherwise (assuming both support at least TLSv1.2). This default should be fine for most cases. Also see the config documentation for SslProtocol. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslEnabledProtocols
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslEnabledProtocols
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslEnabledProtocols
- the value to set- Returns:
- the dsl builder
-
sslEndpointAlgorithm
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslEndpointAlgorithm(String sslEndpointAlgorithm) The endpoint identification algorithm to validate server hostname using server certificate. Use none or false to disable server hostname verification. The option is a: <code>java.lang.String</code> type. Default: https Group: security- Specified by:
sslEndpointAlgorithm
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslEndpointAlgorithm
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslEndpointAlgorithm
- the value to set- Returns:
- the dsl builder
-
sslKeymanagerAlgorithm
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslKeymanagerAlgorithm(String sslKeymanagerAlgorithm) The algorithm used by key manager factory for SSL connections. Default value is the key manager factory algorithm configured for the Java Virtual Machine. The option is a: <code>java.lang.String</code> type. Default: SunX509 Group: security- Specified by:
sslKeymanagerAlgorithm
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslKeymanagerAlgorithm
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslKeymanagerAlgorithm
- the value to set- Returns:
- the dsl builder
-
sslKeyPassword
The password of the private key in the key store file or the PEM key specified in sslKeystoreKey. This is required for clients only if two-way authentication is configured. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslKeyPassword
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslKeyPassword
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslKeyPassword
- the value to set- Returns:
- the dsl builder
-
sslKeystoreLocation
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslKeystoreLocation(String sslKeystoreLocation) The location of the key store file. This is optional for client and can be used for two-way authentication for client. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslKeystoreLocation
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslKeystoreLocation
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslKeystoreLocation
- the value to set- Returns:
- the dsl builder
-
sslKeystorePassword
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslKeystorePassword(String sslKeystorePassword) The store password for the key store file. This is optional for client and only needed if sslKeystoreLocation' is configured. Key store password is not supported for PEM format. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslKeystorePassword
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslKeystorePassword
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslKeystorePassword
- the value to set- Returns:
- the dsl builder
-
sslKeystoreType
The file format of the key store file. This is optional for client. Default value is JKS. The option is a: <code>java.lang.String</code> type. Default: JKS Group: security- Specified by:
sslKeystoreType
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslKeystoreType
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslKeystoreType
- the value to set- Returns:
- the dsl builder
-
sslProtocol
The SSL protocol used to generate the SSLContext. The default is TLSv1.3 when running with Java 11 or newer, TLSv1.2 otherwise. This value should be fine for most use cases. Allowed values in recent JVMs are TLSv1.2 and TLSv1.3. TLS, TLSv1.1, SSL, SSLv2 and SSLv3 may be supported in older JVMs, but their usage is discouraged due to known security vulnerabilities. With the default value for this config and sslEnabledProtocols, clients will downgrade to TLSv1.2 if the server does not support TLSv1.3. If this config is set to TLSv1.2, clients will not use TLSv1.3 even if it is one of the values in sslEnabledProtocols and the server only supports TLSv1.3. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslProtocol
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslProtocol
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslProtocol
- the value to set- Returns:
- the dsl builder
-
sslProvider
The name of the security provider used for SSL connections. Default value is the default security provider of the JVM. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslProvider
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslProvider
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslProvider
- the value to set- Returns:
- the dsl builder
-
sslTrustmanagerAlgorithm
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslTrustmanagerAlgorithm(String sslTrustmanagerAlgorithm) The algorithm used by trust manager factory for SSL connections. Default value is the trust manager factory algorithm configured for the Java Virtual Machine. The option is a: <code>java.lang.String</code> type. Default: PKIX Group: security- Specified by:
sslTrustmanagerAlgorithm
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslTrustmanagerAlgorithm
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslTrustmanagerAlgorithm
- the value to set- Returns:
- the dsl builder
-
sslTruststoreLocation
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslTruststoreLocation(String sslTruststoreLocation) The location of the trust store file. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslTruststoreLocation
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslTruststoreLocation
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslTruststoreLocation
- the value to set- Returns:
- the dsl builder
-
sslTruststorePassword
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslTruststorePassword(String sslTruststorePassword) The password for the trust store file. If a password is not set, trust store file configured will still be used, but integrity checking is disabled. Trust store password is not supported for PEM format. The option is a: <code>java.lang.String</code> type. Group: security- Specified by:
sslTruststorePassword
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslTruststorePassword
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslTruststorePassword
- the value to set- Returns:
- the dsl builder
-
sslTruststoreType
default KafkaEndpointBuilderFactory.KafkaEndpointBuilder sslTruststoreType(String sslTruststoreType) The file format of the trust store file. Default value is JKS. The option is a: <code>java.lang.String</code> type. Default: JKS Group: security- Specified by:
sslTruststoreType
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointConsumerBuilder
- Specified by:
sslTruststoreType
in interfaceKafkaEndpointBuilderFactory.KafkaEndpointProducerBuilder
- Parameters:
sslTruststoreType
- the value to set- Returns:
- the dsl builder
-