Package org.swisspush.kobuka.spring
Class AbstractConcurrentKafkaListenerContainerFactoryBuilder<K,V>
java.lang.Object
org.swisspush.kobuka.spring.AbstractConcurrentKafkaListenerContainerFactoryBuilder<K,V>
- All Implemented Interfaces:
Cloneable,Builder<org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory<K,V>>
- Direct Known Subclasses:
ConcurrentKafkaListenerContainerFactoryBuilder
@Generated("PojoBuilder")
public abstract class AbstractConcurrentKafkaListenerContainerFactoryBuilder<K,V>
extends Object
implements Builder<org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory<K,V>>, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected ConcurrentKafkaListenerContainerFactoryBuilder<K,V> protected Booleanprotected Booleanprotected org.springframework.kafka.listener.BatchErrorHandlerprotected Booleanprotected booleanprotected org.springframework.kafka.listener.CommonErrorHandlerprotected Integerprotected org.springframework.kafka.config.ContainerCustomizer<K,V, org.springframework.kafka.listener.ConcurrentMessageListenerContainer<K, V>> protected Stringprotected org.springframework.kafka.listener.ErrorHandlerprotected org.springframework.kafka.support.converter.MessageConverterprotected booleanprotected intprotected org.springframework.kafka.listener.adapter.ReplyHeadersConfigurerprotected org.springframework.kafka.core.KafkaTemplate<?,?> protected UnaryOperator<ContainerPropertiesBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionackDiscarded(Boolean value) Sets the default value for the ackDiscarded property.afterRollbackProcessor(org.springframework.kafka.listener.AfterRollbackProcessor<? super K, ? super V> value) Sets the default value for the afterRollbackProcessor property.autoStartup(Boolean value) Sets the default value for the autoStartup property.batchErrorHandler(org.springframework.kafka.listener.BatchErrorHandler value) Sets the default value for the batchErrorHandler property.batchInterceptor(org.springframework.kafka.listener.BatchInterceptor<K, V> value) Sets the default value for the batchInterceptor property.batchListener(Boolean value) Sets the default value for the batchListener property.batchToRecordAdapter(org.springframework.kafka.listener.adapter.BatchToRecordAdapter<K, V> value) Sets the default value for the batchToRecordAdapter property.build()Creates a newConcurrentKafkaListenerContainerFactorybased on this builder's settings.but()Returns a clone of this builder.changeConsumerThreadName(boolean value) Sets the default value for the changeConsumerThreadName property.clone()Returns a clone of this builder.commonErrorHandler(org.springframework.kafka.listener.CommonErrorHandler value) Sets the default value for the commonErrorHandler property.concurrency(Integer value) Sets the default value for the concurrency property.consumerFactory(org.springframework.kafka.core.ConsumerFactory<? super K, ? super V> value) Sets the default value for the consumerFactory property.containerCustomizer(org.springframework.kafka.config.ContainerCustomizer<K, V, org.springframework.kafka.listener.ConcurrentMessageListenerContainer<K, V>> value) Sets the default value for the containerCustomizer property.correlationHeaderName(String value) Sets the default value for the correlationHeaderName property.errorHandler(org.springframework.kafka.listener.ErrorHandler value) Sets the default value for the errorHandler property.messageConverter(org.springframework.kafka.support.converter.MessageConverter value) Sets the default value for the messageConverter property.missingTopicsFatal(boolean value) Sets the default value for the missingTopicsFatal property.phase(int value) Sets the default value for the phase property.recordFilterStrategy(org.springframework.kafka.listener.adapter.RecordFilterStrategy<? super K, ? super V> value) Sets the default value for the recordFilterStrategy property.recordInterceptor(org.springframework.kafka.listener.RecordInterceptor<K, V> value) Sets the default value for the recordInterceptor property.replyHeadersConfigurer(org.springframework.kafka.listener.adapter.ReplyHeadersConfigurer value) Sets the default value for the replyHeadersConfigurer property.replyTemplate(org.springframework.kafka.core.KafkaTemplate<?, ?> value) Sets the default value for the replyTemplate property.threadNameSupplier(Function<org.springframework.kafka.listener.MessageListenerContainer, String> value) Sets the default value for the threadNameSupplier property.Sets the default value for the withContainerProperties property.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.swisspush.kobuka.spring.internal.Builder
asSupplier, build
-
Field Details
-
self
-
value$withContainerProperties$java$util$function$UnaryOperator
protected UnaryOperator<ContainerPropertiesBuilder> value$withContainerProperties$java$util$function$UnaryOperator -
isSet$withContainerProperties$java$util$function$UnaryOperator
protected boolean isSet$withContainerProperties$java$util$function$UnaryOperator -
value$consumerFactory$org$springframework$kafka$core$ConsumerFactory
-
isSet$consumerFactory$org$springframework$kafka$core$ConsumerFactory
protected boolean isSet$consumerFactory$org$springframework$kafka$core$ConsumerFactory -
value$autoStartup$java$lang$Boolean
-
isSet$autoStartup$java$lang$Boolean
protected boolean isSet$autoStartup$java$lang$Boolean -
value$phase$int
protected int value$phase$int -
isSet$phase$int
protected boolean isSet$phase$int -
value$messageConverter$org$springframework$kafka$support$converter$MessageConverter
protected org.springframework.kafka.support.converter.MessageConverter value$messageConverter$org$springframework$kafka$support$converter$MessageConverter -
isSet$messageConverter$org$springframework$kafka$support$converter$MessageConverter
protected boolean isSet$messageConverter$org$springframework$kafka$support$converter$MessageConverter -
value$recordFilterStrategy$org$springframework$kafka$listener$adapter$RecordFilterStrategy
-
isSet$recordFilterStrategy$org$springframework$kafka$listener$adapter$RecordFilterStrategy
protected boolean isSet$recordFilterStrategy$org$springframework$kafka$listener$adapter$RecordFilterStrategy -
value$ackDiscarded$java$lang$Boolean
-
isSet$ackDiscarded$java$lang$Boolean
protected boolean isSet$ackDiscarded$java$lang$Boolean -
value$batchListener$java$lang$Boolean
-
isSet$batchListener$java$lang$Boolean
protected boolean isSet$batchListener$java$lang$Boolean -
value$replyTemplate$org$springframework$kafka$core$KafkaTemplate
protected org.springframework.kafka.core.KafkaTemplate<?,?> value$replyTemplate$org$springframework$kafka$core$KafkaTemplate -
isSet$replyTemplate$org$springframework$kafka$core$KafkaTemplate
protected boolean isSet$replyTemplate$org$springframework$kafka$core$KafkaTemplate -
value$errorHandler$org$springframework$kafka$listener$ErrorHandler
protected org.springframework.kafka.listener.ErrorHandler value$errorHandler$org$springframework$kafka$listener$ErrorHandler -
isSet$errorHandler$org$springframework$kafka$listener$ErrorHandler
protected boolean isSet$errorHandler$org$springframework$kafka$listener$ErrorHandler -
value$batchErrorHandler$org$springframework$kafka$listener$BatchErrorHandler
protected org.springframework.kafka.listener.BatchErrorHandler value$batchErrorHandler$org$springframework$kafka$listener$BatchErrorHandler -
isSet$batchErrorHandler$org$springframework$kafka$listener$BatchErrorHandler
protected boolean isSet$batchErrorHandler$org$springframework$kafka$listener$BatchErrorHandler -
value$commonErrorHandler$org$springframework$kafka$listener$CommonErrorHandler
protected org.springframework.kafka.listener.CommonErrorHandler value$commonErrorHandler$org$springframework$kafka$listener$CommonErrorHandler -
isSet$commonErrorHandler$org$springframework$kafka$listener$CommonErrorHandler
protected boolean isSet$commonErrorHandler$org$springframework$kafka$listener$CommonErrorHandler -
value$afterRollbackProcessor$org$springframework$kafka$listener$AfterRollbackProcessor
-
isSet$afterRollbackProcessor$org$springframework$kafka$listener$AfterRollbackProcessor
protected boolean isSet$afterRollbackProcessor$org$springframework$kafka$listener$AfterRollbackProcessor -
value$replyHeadersConfigurer$org$springframework$kafka$listener$adapter$ReplyHeadersConfigurer
protected org.springframework.kafka.listener.adapter.ReplyHeadersConfigurer value$replyHeadersConfigurer$org$springframework$kafka$listener$adapter$ReplyHeadersConfigurer -
isSet$replyHeadersConfigurer$org$springframework$kafka$listener$adapter$ReplyHeadersConfigurer
protected boolean isSet$replyHeadersConfigurer$org$springframework$kafka$listener$adapter$ReplyHeadersConfigurer -
value$missingTopicsFatal$boolean
protected boolean value$missingTopicsFatal$boolean -
isSet$missingTopicsFatal$boolean
protected boolean isSet$missingTopicsFatal$boolean -
value$recordInterceptor$org$springframework$kafka$listener$RecordInterceptor
-
isSet$recordInterceptor$org$springframework$kafka$listener$RecordInterceptor
protected boolean isSet$recordInterceptor$org$springframework$kafka$listener$RecordInterceptor -
value$batchInterceptor$org$springframework$kafka$listener$BatchInterceptor
-
isSet$batchInterceptor$org$springframework$kafka$listener$BatchInterceptor
protected boolean isSet$batchInterceptor$org$springframework$kafka$listener$BatchInterceptor -
value$batchToRecordAdapter$org$springframework$kafka$listener$adapter$BatchToRecordAdapter
-
isSet$batchToRecordAdapter$org$springframework$kafka$listener$adapter$BatchToRecordAdapter
protected boolean isSet$batchToRecordAdapter$org$springframework$kafka$listener$adapter$BatchToRecordAdapter -
value$containerCustomizer$org$springframework$kafka$config$ContainerCustomizer
-
isSet$containerCustomizer$org$springframework$kafka$config$ContainerCustomizer
protected boolean isSet$containerCustomizer$org$springframework$kafka$config$ContainerCustomizer -
value$correlationHeaderName$java$lang$String
-
isSet$correlationHeaderName$java$lang$String
protected boolean isSet$correlationHeaderName$java$lang$String -
value$changeConsumerThreadName$boolean
protected boolean value$changeConsumerThreadName$boolean -
isSet$changeConsumerThreadName$boolean
protected boolean isSet$changeConsumerThreadName$boolean -
value$threadNameSupplier$java$util$function$Function
-
isSet$threadNameSupplier$java$util$function$Function
protected boolean isSet$threadNameSupplier$java$util$function$Function -
value$concurrency$java$lang$Integer
-
isSet$concurrency$java$lang$Integer
protected boolean isSet$concurrency$java$lang$Integer
-
-
Constructor Details
-
AbstractConcurrentKafkaListenerContainerFactoryBuilder
public AbstractConcurrentKafkaListenerContainerFactoryBuilder()Creates a newAbstractConcurrentKafkaListenerContainerFactoryBuilder.
-
-
Method Details
-
withContainerProperties
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> withContainerProperties(UnaryOperator<ContainerPropertiesBuilder> value) Sets the default value for the withContainerProperties property.- Parameters:
value- the default value- Returns:
- this builder
-
consumerFactory
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> consumerFactory(org.springframework.kafka.core.ConsumerFactory<? super K, ? super V> value) Sets the default value for the consumerFactory property.- Parameters:
value- the default value- Returns:
- this builder
-
autoStartup
Sets the default value for the autoStartup property.- Parameters:
value- the default value- Returns:
- this builder
-
phase
Sets the default value for the phase property.- Parameters:
value- the default value- Returns:
- this builder
-
messageConverter
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> messageConverter(org.springframework.kafka.support.converter.MessageConverter value) Sets the default value for the messageConverter property.- Parameters:
value- the default value- Returns:
- this builder
-
recordFilterStrategy
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> recordFilterStrategy(org.springframework.kafka.listener.adapter.RecordFilterStrategy<? super K, ? super V> value) Sets the default value for the recordFilterStrategy property.- Parameters:
value- the default value- Returns:
- this builder
-
ackDiscarded
Sets the default value for the ackDiscarded property.- Parameters:
value- the default value- Returns:
- this builder
-
batchListener
Sets the default value for the batchListener property.- Parameters:
value- the default value- Returns:
- this builder
-
replyTemplate
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> replyTemplate(org.springframework.kafka.core.KafkaTemplate<?, ?> value) Sets the default value for the replyTemplate property.- Parameters:
value- the default value- Returns:
- this builder
-
errorHandler
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> errorHandler(org.springframework.kafka.listener.ErrorHandler value) Sets the default value for the errorHandler property.- Parameters:
value- the default value- Returns:
- this builder
-
batchErrorHandler
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> batchErrorHandler(org.springframework.kafka.listener.BatchErrorHandler value) Sets the default value for the batchErrorHandler property.- Parameters:
value- the default value- Returns:
- this builder
-
commonErrorHandler
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> commonErrorHandler(org.springframework.kafka.listener.CommonErrorHandler value) Sets the default value for the commonErrorHandler property.- Parameters:
value- the default value- Returns:
- this builder
-
afterRollbackProcessor
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> afterRollbackProcessor(org.springframework.kafka.listener.AfterRollbackProcessor<? super K, ? super V> value) Sets the default value for the afterRollbackProcessor property.- Parameters:
value- the default value- Returns:
- this builder
-
replyHeadersConfigurer
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> replyHeadersConfigurer(org.springframework.kafka.listener.adapter.ReplyHeadersConfigurer value) Sets the default value for the replyHeadersConfigurer property.- Parameters:
value- the default value- Returns:
- this builder
-
missingTopicsFatal
Sets the default value for the missingTopicsFatal property.- Parameters:
value- the default value- Returns:
- this builder
-
recordInterceptor
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> recordInterceptor(org.springframework.kafka.listener.RecordInterceptor<K, V> value) Sets the default value for the recordInterceptor property.- Parameters:
value- the default value- Returns:
- this builder
-
batchInterceptor
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> batchInterceptor(org.springframework.kafka.listener.BatchInterceptor<K, V> value) Sets the default value for the batchInterceptor property.- Parameters:
value- the default value- Returns:
- this builder
-
batchToRecordAdapter
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> batchToRecordAdapter(org.springframework.kafka.listener.adapter.BatchToRecordAdapter<K, V> value) Sets the default value for the batchToRecordAdapter property.- Parameters:
value- the default value- Returns:
- this builder
-
containerCustomizer
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> containerCustomizer(org.springframework.kafka.config.ContainerCustomizer<K, V, org.springframework.kafka.listener.ConcurrentMessageListenerContainer<K, V>> value) Sets the default value for the containerCustomizer property.- Parameters:
value- the default value- Returns:
- this builder
-
correlationHeaderName
Sets the default value for the correlationHeaderName property.- Parameters:
value- the default value- Returns:
- this builder
-
changeConsumerThreadName
Sets the default value for the changeConsumerThreadName property.- Parameters:
value- the default value- Returns:
- this builder
-
threadNameSupplier
public ConcurrentKafkaListenerContainerFactoryBuilder<K,V> threadNameSupplier(Function<org.springframework.kafka.listener.MessageListenerContainer, String> value) Sets the default value for the threadNameSupplier property.- Parameters:
value- the default value- Returns:
- this builder
-
concurrency
Sets the default value for the concurrency property.- Parameters:
value- the default value- Returns:
- this builder
-
clone
Returns a clone of this builder. -
but
Returns a clone of this builder.- Returns:
- the clone
-
build
Creates a newConcurrentKafkaListenerContainerFactorybased on this builder's settings.
-