Class TopologyConfig

java.lang.Object
org.apache.kafka.common.config.AbstractConfig
org.apache.kafka.streams.TopologyConfig

@Public public final class TopologyConfig extends AbstractConfig
Streams configs that apply at the topology level. The values in the StreamsConfig parameter of the KafkaStreams constructor or the KafkaStreamsNamedTopologyWrapper constructor (deprecated) will determine the defaults, which can then be overridden for specific topologies by passing them in when creating the topology builders via the StreamsBuilder(TopologyConfig) constructor for DSL applications, or the Topology(TopologyConfig) for PAPI applications.

Note that some configs, such as the processor.wrapper.class config, can only take effect while the topology is being built, which means they have to be passed in as a TopologyConfig to the Topology(TopologyConfig) constructor (PAPI) or the StreamsBuilder(TopologyConfig) constructor (DSL). If they are only set in the configs passed in to the KafkaStreams constructor, it will be too late for them to be applied and the config will be ignored.

  • Field Details

    • topologyName

      public final String topologyName
    • eosEnabled

      public final boolean eosEnabled
    • applicationConfigs

      public final StreamsConfig applicationConfigs
    • topologyOverrides

      public final Properties topologyOverrides
    • maxBufferedSize

      public final int maxBufferedSize
    • cacheSize

      public final long cacheSize
    • maxTaskIdleMs

      public final long maxTaskIdleMs
    • taskTimeoutMs

      public final long taskTimeoutMs
    • storeType

      public final String storeType
    • dslStoreSuppliers

      public final Class<?> dslStoreSuppliers
    • timestampExtractorSupplier

      public final Supplier<TimestampExtractor> timestampExtractorSupplier
    • deserializationExceptionHandlerSupplier

      public final Supplier<DeserializationExceptionHandler> deserializationExceptionHandlerSupplier
    • processingExceptionHandlerSupplier

      public final Supplier<ProcessingExceptionHandler> processingExceptionHandlerSupplier
    • ensureExplicitInternalResourceNaming

      public final boolean ensureExplicitInternalResourceNaming
    • transactionalStateStoresEnabled

      public final boolean transactionalStateStoresEnabled
  • Constructor Details

  • Method Details