Class BaseStreamsConfigBuilder<T extends BaseStreamsConfigBuilder<T> & org.swisspush.kobuka.client.base.ClientBuilderFunctions<T>>

java.lang.Object
org.swisspush.kobuka.client.base.BaseStreamsConfigBuilder<T>
All Implemented Interfaces:
StreamsConfigFields<T>
Direct Known Subclasses:
StreamsConfigBuilder

public class BaseStreamsConfigBuilder<T extends BaseStreamsConfigBuilder<T> & org.swisspush.kobuka.client.base.ClientBuilderFunctions<T>> extends Object
Base class for custom builders. Do not use directly.
  • Constructor Details

    • BaseStreamsConfigBuilder

      public BaseStreamsConfigBuilder()
  • Method Details

    • copyFrom

      public void copyFrom(BaseStreamsConfigBuilder<?> parent)
    • copyFrom

      public void copyFrom(BaseCommonClientConfigBuilder<?> parent)
    • build

      public Map<String,Object> build()
    • transform

      public <R> R transform(Function<BaseStreamsConfigBuilder<?>,R> fn)
    • build

      default <R> R build(Function<Map<String,Object>,R> fn)
    • property

      default T property(String key, Object value)
    • asSupplier

      default Supplier<Map<String,Object>> asSupplier()
    • applicationId

      public T applicationId(String value)
      Description copied from interface: StreamsConfigFields

      application.id

      An identifier for the stream processing application.
      Must be unique within the Kafka cluster.
      It is used as 1) the default client-id prefix, 2) the group-id for membership management, 3) the changelog topic prefix.

      Default:

      Valid Values:

      Importance: high

      Specified by:
      applicationId in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • bootstrapServers

      public T bootstrapServers(List<String> value)
      Description copied from interface: StreamsConfigFields

      bootstrap.servers

      A list of host/port pairs to use for establishing the initial connection to the Kafka cluster.
      The client will make use of all servers irrespective of which servers are specified here for bootstrapping—this list only impacts the initial hosts used to discover the full set of servers.
      This list should be in the form host1:port1,host2:port2,....
      Since these servers are just used for the initial connection to discover the full cluster membership (which may change dynamically), this list need not contain the full set of servers (you may want more than one, though, in case a server is down).

      Default:

      Valid Values:

      Importance: high

      Specified by:
      bootstrapServers in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • bootstrapServers

      public T bootstrapServers(String value)
      Description copied from interface: StreamsConfigFields

      bootstrap.servers

      A list of host/port pairs to use for establishing the initial connection to the Kafka cluster.
      The client will make use of all servers irrespective of which servers are specified here for bootstrapping—this list only impacts the initial hosts used to discover the full set of servers.
      This list should be in the form host1:port1,host2:port2,....
      Since these servers are just used for the initial connection to discover the full cluster membership (which may change dynamically), this list need not contain the full set of servers (you may want more than one, though, in case a server is down).

      Default:

      Valid Values:

      Importance: high

      Specified by:
      bootstrapServers in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • numStandbyReplicas

      public T numStandbyReplicas(Integer value)
      Description copied from interface: StreamsConfigFields

      num.standby.replicas

      The number of standby replicas for each task.

      Default: 0

      Valid Values:

      Importance: high

      Specified by:
      numStandbyReplicas in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • stateDir

      public T stateDir(String value)
      Description copied from interface: StreamsConfigFields

      state.dir

      Directory location for state store.
      This path must be unique for each streams instance sharing the same underlying filesystem.

      Default: /tmp/kafka-streams

      Valid Values:

      Importance: high

      Specified by:
      stateDir in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • acceptableRecoveryLag

      public T acceptableRecoveryLag(Long value)
      Description copied from interface: StreamsConfigFields

      acceptable.recovery.lag

      The maximum acceptable lag (number of offsets to catch up) for a client to be considered caught-up enough to receive an active task assignment.
      Upon assignment, it will still restore the rest of the changelog before processing.
      To avoid a pause in processing during rebalances, this config should correspond to a recovery time of well under a minute for a given workload.
      Must be at least 0.

      Default: 10000

      Valid Values: [0,...]

      Importance: medium

      Specified by:
      acceptableRecoveryLag in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • cacheMaxBytesBuffering

      public T cacheMaxBytesBuffering(Long value)
      Description copied from interface: StreamsConfigFields

      cache.max.bytes.buffering

      Maximum number of memory bytes to be used for buffering across all threads

      Default: 10485760

      Valid Values: [0,...]

      Importance: medium

      Specified by:
      cacheMaxBytesBuffering in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • clientId

      public T clientId(String value)
      Description copied from interface: StreamsConfigFields

      client.id

      An ID prefix string used for the client IDs of internal consumer, producer and restore-consumer, with pattern '<client.id>-StreamThread--<consumer|producer|restore-consumer>'.

      Default: ""

      Valid Values:

      Importance: medium

      Specified by:
      clientId in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultDeserializationExceptionHandler

      public T defaultDeserializationExceptionHandler(Class value)
      Description copied from interface: StreamsConfigFields

      default.deserialization.exception.handler

      Exception handling class that implements the org.apache.kafka.streams.errors.DeserializationExceptionHandler interface.

      Default: org.apache.kafka.streams.errors.LogAndFailExceptionHandler

      Valid Values:

      Importance: medium

      Specified by:
      defaultDeserializationExceptionHandler in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultKeySerde

      public T defaultKeySerde(Class value)
      Description copied from interface: StreamsConfigFields

      default.key.serde

      Default serializer / deserializer class for key that implements the org.apache.kafka.common.serialization.Serde interface.
      Note when windowed serde class is used, one needs to set the inner serde class that implements the org.apache.kafka.common.serialization.Serde interface via 'default.windowed.key.serde.inner' or 'default.windowed.value.serde.inner' as well

      Default: null

      Valid Values:

      Importance: medium

      Specified by:
      defaultKeySerde in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultListKeySerdeInner

      public T defaultListKeySerdeInner(Class value)
      Description copied from interface: StreamsConfigFields

      default.list.key.serde.inner

      Default inner class of list serde for key that implements the org.apache.kafka.common.serialization.Serde interface.
      This configuration will be read if and only if default.key.serde configuration is set to org.apache.kafka.common.serialization.Serdes.ListSerde

      Default: null

      Valid Values:

      Importance: medium

      Specified by:
      defaultListKeySerdeInner in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultListValueSerdeInner

      public T defaultListValueSerdeInner(Class value)
      Description copied from interface: StreamsConfigFields

      default.list.value.serde.inner

      Default inner class of list serde for value that implements the org.apache.kafka.common.serialization.Serde interface.
      This configuration will be read if and only if default.value.serde configuration is set to org.apache.kafka.common.serialization.Serdes.ListSerde

      Default: null

      Valid Values:

      Importance: medium

      Specified by:
      defaultListValueSerdeInner in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultListKeySerdeType

      public T defaultListKeySerdeType(Class value)
      Description copied from interface: StreamsConfigFields

      default.list.key.serde.type

      Default class for key that implements the java.util.List interface.
      This configuration will be read if and only if default.key.serde configuration is set to org.apache.kafka.common.serialization.Serdes.ListSerde Note when list serde class is used, one needs to set the inner serde class that implements the org.apache.kafka.common.serialization.Serde interface via 'default.list.key.serde.inner'

      Default: null

      Valid Values:

      Importance: medium

      Specified by:
      defaultListKeySerdeType in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultListValueSerdeType

      public T defaultListValueSerdeType(Class value)
      Description copied from interface: StreamsConfigFields

      default.list.value.serde.type

      Default class for value that implements the java.util.List interface.
      This configuration will be read if and only if default.value.serde configuration is set to org.apache.kafka.common.serialization.Serdes.ListSerde Note when list serde class is used, one needs to set the inner serde class that implements the org.apache.kafka.common.serialization.Serde interface via 'default.list.value.serde.inner'

      Default: null

      Valid Values:

      Importance: medium

      Specified by:
      defaultListValueSerdeType in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultProductionExceptionHandler

      public T defaultProductionExceptionHandler(Class value)
      Description copied from interface: StreamsConfigFields

      default.production.exception.handler

      Exception handling class that implements the org.apache.kafka.streams.errors.ProductionExceptionHandler interface.

      Default: org.apache.kafka.streams.errors.DefaultProductionExceptionHandler

      Valid Values:

      Importance: medium

      Specified by:
      defaultProductionExceptionHandler in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultTimestampExtractor

      public T defaultTimestampExtractor(Class value)
      Description copied from interface: StreamsConfigFields

      default.timestamp.extractor

      Default timestamp extractor class that implements the org.apache.kafka.streams.processor.TimestampExtractor interface.

      Default: org.apache.kafka.streams.processor.FailOnInvalidTimestamp

      Valid Values:

      Importance: medium

      Specified by:
      defaultTimestampExtractor in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultValueSerde

      public T defaultValueSerde(Class value)
      Description copied from interface: StreamsConfigFields

      default.value.serde

      Default serializer / deserializer class for value that implements the org.apache.kafka.common.serialization.Serde interface.
      Note when windowed serde class is used, one needs to set the inner serde class that implements the org.apache.kafka.common.serialization.Serde interface via 'default.windowed.key.serde.inner' or 'default.windowed.value.serde.inner' as well

      Default: null

      Valid Values:

      Importance: medium

      Specified by:
      defaultValueSerde in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • maxTaskIdleMs

      public T maxTaskIdleMs(Long value)
      Description copied from interface: StreamsConfigFields

      max.task.idle.ms

      This config controls whether joins and merges may produce out-of-order results.
      The config value is the maximum amount of time in milliseconds a stream task will stay idle when it is fully caught up on some (but not all) input partitions to wait for producers to send additional records and avoid potential out-of-order record processing across multiple input streams.
      The default (zero) does not wait for producers to send more records, but it does wait to fetch data that is already present on the brokers.
      This default means that for records that are already present on the brokers, Streams will process them in timestamp order.
      Set to -1 to disable idling entirely and process any locally available data, even though doing so may produce out-of-order processing.

      Default: 0

      Valid Values:

      Importance: medium

      Specified by:
      maxTaskIdleMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • maxWarmupReplicas

      public T maxWarmupReplicas(Integer value)
      Description copied from interface: StreamsConfigFields

      max.warmup.replicas

      The maximum number of warmup replicas (extra standbys beyond the configured num.standbys) that can be assigned at once for the purpose of keeping the task available on one instance while it is warming up on another instance it has been reassigned to.
      Used to throttle how much extra broker traffic and cluster state can be used for high availability.
      Must be at least 1.

      Default: 2

      Valid Values: [1,...]

      Importance: medium

      Specified by:
      maxWarmupReplicas in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • numStreamThreads

      public T numStreamThreads(Integer value)
      Description copied from interface: StreamsConfigFields

      num.stream.threads

      The number of threads to execute stream processing.

      Default: 1

      Valid Values:

      Importance: medium

      Specified by:
      numStreamThreads in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • processingGuarantee

      public T processingGuarantee(String value)
      Description copied from interface: StreamsConfigFields

      processing.guarantee

      The processing guarantee that should be used.
      Possible values are at_least_once (default) and exactly_once_v2 (requires brokers version 2.5 or higher).
      Deprecated options are exactly_once (requires brokers version 0.11.0 or higher) and exactly_once_beta (requires brokers version 2.5 or higher).
      Note that exactly-once processing requires a cluster of at least three brokers by default what is the recommended setting for production; for development you can change this, by adjusting broker setting transaction.state.log.replication.factor and transaction.state.log.min.isr.

      Default: at_least_once

      Valid Values: [at_least_once, exactly_once, exactly_once_beta, exactly_once_v2]

      Importance: medium

      Specified by:
      processingGuarantee in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • rackAwareAssignmentTags

      public T rackAwareAssignmentTags(List<String> value)
      Description copied from interface: StreamsConfigFields

      rack.aware.assignment.tags

      List of client tag keys used to distribute standby replicas across Kafka Streams instances.
      When configured, Kafka Streams will make a best-effort to distribute the standby tasks over each client tag dimension.

      Default: ""

      Valid Values: List containing maximum of 5 elements

      Importance: medium

      Specified by:
      rackAwareAssignmentTags in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • rackAwareAssignmentTags

      public T rackAwareAssignmentTags(String value)
      Description copied from interface: StreamsConfigFields

      rack.aware.assignment.tags

      List of client tag keys used to distribute standby replicas across Kafka Streams instances.
      When configured, Kafka Streams will make a best-effort to distribute the standby tasks over each client tag dimension.

      Default: ""

      Valid Values: List containing maximum of 5 elements

      Importance: medium

      Specified by:
      rackAwareAssignmentTags in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • replicationFactor

      public T replicationFactor(Integer value)
      Description copied from interface: StreamsConfigFields

      replication.factor

      The replication factor for change log topics and repartition topics created by the stream processing application.
      The default of -1 (meaning: use broker default replication factor) requires broker version 2.4 or newer

      Default: -1

      Valid Values:

      Importance: medium

      Specified by:
      replicationFactor in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • securityProtocol

      public T securityProtocol(String value)
      Description copied from interface: StreamsConfigFields

      security.protocol

      Protocol used to communicate with brokers.
      Valid values are: PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL.

      Default: PLAINTEXT

      Valid Values: [PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL]

      Importance: medium

      Specified by:
      securityProtocol in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • taskTimeoutMs

      public T taskTimeoutMs(Long value)
      Description copied from interface: StreamsConfigFields

      task.timeout.ms

      The maximum amount of time in milliseconds a task might stall due to internal errors and retries until an error is raised.
      For a timeout of 0ms, a task would raise an error for the first internal error.
      For any timeout larger than 0ms, a task will retry at least once before an error is raised.

      Default: 300000 (5 minutes)

      Valid Values: [0,...]

      Importance: medium

      Specified by:
      taskTimeoutMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • topologyOptimization

      public T topologyOptimization(String value)
      Description copied from interface: StreamsConfigFields

      topology.optimization

      A configuration telling Kafka Streams if it should optimize the topology, disabled by default

      Default: none

      Valid Values: [none, all]

      Importance: medium

      Specified by:
      topologyOptimization in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • applicationServer

      public T applicationServer(String value)
      Description copied from interface: StreamsConfigFields

      application.server

      A host:port pair pointing to a user-defined endpoint that can be used for state store discovery and interactive queries on this KafkaStreams instance.

      Default: ""

      Valid Values:

      Importance: low

      Specified by:
      applicationServer in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • bufferedRecordsPerPartition

      public T bufferedRecordsPerPartition(Integer value)
      Description copied from interface: StreamsConfigFields

      buffered.records.per.partition

      Maximum number of records to buffer per partition.

      Default: 1000

      Valid Values:

      Importance: low

      Specified by:
      bufferedRecordsPerPartition in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • builtInMetricsVersion

      public T builtInMetricsVersion(String value)
      Description copied from interface: StreamsConfigFields

      built.in.metrics.version

      Version of the built-in metrics to use.

      Default: latest

      Valid Values: [latest]

      Importance: low

      Specified by:
      builtInMetricsVersion in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • commitIntervalMs

      public T commitIntervalMs(Long value)
      Description copied from interface: StreamsConfigFields

      commit.interval.ms

      The frequency in milliseconds with which to commit processing progress.
      For at-least-once processing, committing means to save the position (ie, offsets) of the processor.
      For exactly-once processing, it means to commit the transaction which includes to save the position and to make the committed data in the output topic visible to consumers with isolation level read_committed.
      (Note, if processing.guarantee is set to exactly_once_v2, exactly_once,the default value is 100, otherwise the default value is 30000.

      Default: 30000 (30 seconds)

      Valid Values: [0,...]

      Importance: low

      Specified by:
      commitIntervalMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • repartitionPurgeIntervalMs

      public T repartitionPurgeIntervalMs(Long value)
      Description copied from interface: StreamsConfigFields

      repartition.purge.interval.ms

      The frequency in milliseconds with which to delete fully consumed records from repartition topics.
      Purging will occur after at least this value since the last purge, but may be delayed until later.
      (Note, unlike commit.interval.ms, the default for this value remains unchanged when processing.guarantee is set to exactly_once_v2).

      Default: 30000 (30 seconds)

      Valid Values: [0,...]

      Importance: low

      Specified by:
      repartitionPurgeIntervalMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • connectionsMaxIdleMs

      public T connectionsMaxIdleMs(Long value)
      Description copied from interface: StreamsConfigFields

      connections.max.idle.ms

      Close idle connections after the number of milliseconds specified by this config.

      Default: 540000 (9 minutes)

      Valid Values:

      Importance: low

      Specified by:
      connectionsMaxIdleMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • defaultDslStore

      public T defaultDslStore(String value)
      Description copied from interface: StreamsConfigFields

      default.dsl.store

      The default state store type used by DSL operators.

      Default: rocksDB

      Valid Values: [rocksDB, in_memory]

      Importance: low

      Specified by:
      defaultDslStore in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • metadataMaxAgeMs

      public T metadataMaxAgeMs(Long value)
      Description copied from interface: StreamsConfigFields

      metadata.max.age.ms

      The period of time in milliseconds after which we force a refresh of metadata even if we haven't seen any partition leadership changes to proactively discover any new brokers or partitions.

      Default: 300000 (5 minutes)

      Valid Values: [0,...]

      Importance: low

      Specified by:
      metadataMaxAgeMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • metricsNumSamples

      public T metricsNumSamples(Integer value)
      Description copied from interface: StreamsConfigFields

      metrics.num.samples

      The number of samples maintained to compute metrics.

      Default: 2

      Valid Values: [1,...]

      Importance: low

      Specified by:
      metricsNumSamples in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • metricReporters

      public T metricReporters(List<String> value)
      Description copied from interface: StreamsConfigFields

      metric.reporters

      A list of classes to use as metrics reporters.
      Implementing the org.apache.kafka.common.metrics.MetricsReporter interface allows plugging in classes that will be notified of new metric creation.
      The JmxReporter is always included to register JMX statistics.

      Default: ""

      Valid Values:

      Importance: low

      Specified by:
      metricReporters in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • metricReporters

      public T metricReporters(String value)
      Description copied from interface: StreamsConfigFields

      metric.reporters

      A list of classes to use as metrics reporters.
      Implementing the org.apache.kafka.common.metrics.MetricsReporter interface allows plugging in classes that will be notified of new metric creation.
      The JmxReporter is always included to register JMX statistics.

      Default: ""

      Valid Values:

      Importance: low

      Specified by:
      metricReporters in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • metricsRecordingLevel

      public T metricsRecordingLevel(String value)
      Description copied from interface: StreamsConfigFields

      metrics.recording.level

      The highest recording level for metrics.

      Default: INFO

      Valid Values: [INFO, DEBUG, TRACE]

      Importance: low

      Specified by:
      metricsRecordingLevel in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • metricsSampleWindowMs

      public T metricsSampleWindowMs(Long value)
      Description copied from interface: StreamsConfigFields

      metrics.sample.window.ms

      The window of time a metrics sample is computed over.

      Default: 30000 (30 seconds)

      Valid Values: [0,...]

      Importance: low

      Specified by:
      metricsSampleWindowMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • pollMs

      public T pollMs(Long value)
      Description copied from interface: StreamsConfigFields

      poll.ms

      The amount of time in milliseconds to block waiting for input.

      Default: 100

      Valid Values:

      Importance: low

      Specified by:
      pollMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • probingRebalanceIntervalMs

      public T probingRebalanceIntervalMs(Long value)
      Description copied from interface: StreamsConfigFields

      probing.rebalance.interval.ms

      The maximum time in milliseconds to wait before triggering a rebalance to probe for warmup replicas that have finished warming up and are ready to become active.
      Probing rebalances will continue to be triggered until the assignment is balanced.
      Must be at least 1 minute.

      Default: 600000 (10 minutes)

      Valid Values: [60000,...]

      Importance: low

      Specified by:
      probingRebalanceIntervalMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • receiveBufferBytes

      public T receiveBufferBytes(Integer value)
      Description copied from interface: StreamsConfigFields

      receive.buffer.bytes

      The size of the TCP receive buffer (SO_RCVBUF) to use when reading data.
      If the value is -1, the OS default will be used.

      Default: 32768 (32 kibibytes)

      Valid Values: [-1,...]

      Importance: low

      Specified by:
      receiveBufferBytes in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • reconnectBackoffMs

      public T reconnectBackoffMs(Long value)
      Description copied from interface: StreamsConfigFields

      reconnect.backoff.ms

      The base amount of time to wait before attempting to reconnect to a given host.
      This avoids repeatedly connecting to a host in a tight loop.
      This backoff applies to all connection attempts by the client to a broker.

      Default: 50

      Valid Values: [0,...]

      Importance: low

      Specified by:
      reconnectBackoffMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • reconnectBackoffMaxMs

      public T reconnectBackoffMaxMs(Long value)
      Description copied from interface: StreamsConfigFields

      reconnect.backoff.max.ms

      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.

      Default: 1000 (1 second)

      Valid Values: [0,...]

      Importance: low

      Specified by:
      reconnectBackoffMaxMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • retries

      public T retries(Integer value)
      Description copied from interface: StreamsConfigFields

      retries

      Setting a value greater than zero will cause the client to resend any request that fails with a potentially transient error.
      It is recommended to set the value to either zero or `MAX_VALUE` and use corresponding timeout parameters to control how long a client should retry a request.

      Default: 0

      Valid Values: [0,...,2147483647]

      Importance: low

      Specified by:
      retries in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • retryBackoffMs

      public T retryBackoffMs(Long value)
      Description copied from interface: StreamsConfigFields

      retry.backoff.ms

      The amount of time to wait before attempting to retry a failed request to a given topic partition.
      This avoids repeatedly sending requests in a tight loop under some failure scenarios.

      Default: 100

      Valid Values: [0,...]

      Importance: low

      Specified by:
      retryBackoffMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • requestTimeoutMs

      public T requestTimeoutMs(Integer value)
      Description copied from interface: StreamsConfigFields

      request.timeout.ms

      The configuration controls the maximum amount of time the client will wait for the response of a request.
      If the response is not received before the timeout elapses the client will resend the request if necessary or fail the request if retries are exhausted.

      Default: 40000 (40 seconds)

      Valid Values: [0,...]

      Importance: low

      Specified by:
      requestTimeoutMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • rocksdbConfigSetter

      public T rocksdbConfigSetter(Class value)
      Description copied from interface: StreamsConfigFields

      rocksdb.config.setter

      A Rocks DB config setter class or class name that implements the org.apache.kafka.streams.state.RocksDBConfigSetter interface

      Default: null

      Valid Values:

      Importance: low

      Specified by:
      rocksdbConfigSetter in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • sendBufferBytes

      public T sendBufferBytes(Integer value)
      Description copied from interface: StreamsConfigFields

      send.buffer.bytes

      The size of the TCP send buffer (SO_SNDBUF) to use when sending data.
      If the value is -1, the OS default will be used.

      Default: 131072 (128 kibibytes)

      Valid Values: [-1,...]

      Importance: low

      Specified by:
      sendBufferBytes in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • stateCleanupDelayMs

      public T stateCleanupDelayMs(Long value)
      Description copied from interface: StreamsConfigFields

      state.cleanup.delay.ms

      The amount of time in milliseconds to wait before deleting state when a partition has migrated.
      Only state directories that have not been modified for at least state.cleanup.delay.ms will be removed

      Default: 600000 (10 minutes)

      Valid Values:

      Importance: low

      Specified by:
      stateCleanupDelayMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • upgradeFrom

      public T upgradeFrom(String value)
      Description copied from interface: StreamsConfigFields

      upgrade.from

      Allows upgrading in a backward compatible way.
      This is needed when upgrading from [0.10.0, 1.1] to 2.0+, or when upgrading from [2.0, 2.3] to 2.4+.
      When upgrading from 3.3 to a newer version it is not required to specify this config.
      Default is `null`.
      Accepted values are "0.10.0", "0.10.1", "0.10.2", "0.11.0", "1.0", "1.1", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "3.0", "3.1", "3.2" (for upgrading from the corresponding old version).

      Default: null

      Valid Values: [null, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 1.0, 1.1, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 3.0, 3.1, 3.2]

      Importance: low

      Specified by:
      upgradeFrom in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • windowedInnerClassSerde

      public T windowedInnerClassSerde(String value)
      Description copied from interface: StreamsConfigFields

      windowed.inner.class.serde

      Default serializer / deserializer for the inner class of a windowed record.
      Must implement the org.apache.kafka.common.serialization.Serde interface.
      Note that setting this config in KafkaStreams application would result in an error as it is meant to be used only from Plain consumer client.

      Default: null

      Valid Values:

      Importance: low

      Specified by:
      windowedInnerClassSerde in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • windowstoreChangelogAdditionalRetentionMs

      public T windowstoreChangelogAdditionalRetentionMs(Long value)
      Description copied from interface: StreamsConfigFields

      windowstore.changelog.additional.retention.ms

      Added to a windows maintainMs to ensure data is not deleted from the log prematurely.
      Allows for clock drift.
      Default is 1 day

      Default: 86400000 (1 day)

      Valid Values:

      Importance: low

      Specified by:
      windowstoreChangelogAdditionalRetentionMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>
    • windowSizeMs

      public T windowSizeMs(Long value)
      Description copied from interface: StreamsConfigFields

      window.size.ms

      Sets window size for the deserializer in order to calculate window end times.

      Default: null

      Valid Values:

      Importance: low

      Specified by:
      windowSizeMs in interface StreamsConfigFields<T extends org.swisspush.kobuka.client.base.AbstractStreamsConfigBuilder<T>>