Class KafkaMessageChannelBinder
java.lang.Object
org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,C,P>
org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>,org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
org.springframework.cloud.stream.binder.kafka.KafkaMessageChannelBinder
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.cloud.stream.binder.Binder<org.springframework.messaging.MessageChannel,,org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>> org.springframework.cloud.stream.binder.ExtendedBindingProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties,,org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> org.springframework.cloud.stream.binder.ExtendedPropertiesBinder<org.springframework.messaging.MessageChannel,,org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties, org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> org.springframework.cloud.stream.binder.PollableConsumerBinder<org.springframework.messaging.MessageHandler,,org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>> org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware
public class KafkaMessageChannelBinder
extends org.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>,org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
implements org.springframework.cloud.stream.binder.ExtendedPropertiesBinder<org.springframework.messaging.MessageChannel,org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties,org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>
A
Binder that uses Kafka as the
underlying middleware.- Author:
- Eric Bottard, Marius Bogoevici, Ilayaperumal Gopinathan, David Turanski, Gary Russell, Mark Fisher, Soby Chacko, Henryk Konsek, Doug Saus, Lukasz Kaminski, Taras Danylchuk, Yi Liu, Chris Bono, Byungjun You, Oliver Führer, Omer Celik, Didier Loiseau
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder
org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.ErrorInfrastructure, org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.PolledConsumerResources -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKafka header for x-exception-fqcn.static final StringKafka header for x-exception-message.static final StringKafka header for x-exception-stacktrace.static final StringKafka header for x-original-offset.static final StringKafka header for x-original-partition.static final StringKafka header for x-original-timestamp.static final StringKafka header for x-original-timestamp-type.static final StringKafka header for x-original-topic.Fields inherited from class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder
provisioningProviderFields inherited from class org.springframework.cloud.stream.binder.AbstractBinder
logger -
Constructor Summary
ConstructorsConstructorDescriptionKafkaMessageChannelBinder(org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties configurationProperties, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner provisioningProvider) KafkaMessageChannelBinder(org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties configurationProperties, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner provisioningProvider, org.springframework.cloud.stream.config.ListenerContainerCustomizer<org.springframework.kafka.listener.AbstractMessageListenerContainer<?, ?>> containerCustomizer, KafkaBindingRebalanceListener rebalanceListener) KafkaMessageChannelBinder(org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties configurationProperties, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner provisioningProvider, org.springframework.cloud.stream.config.ListenerContainerCustomizer<org.springframework.kafka.listener.AbstractMessageListenerContainer<?, ?>> containerCustomizer, org.springframework.cloud.stream.config.MessageSourceCustomizer<org.springframework.integration.kafka.inbound.KafkaMessageSource<?, ?>> sourceCustomizer, KafkaBindingRebalanceListener rebalanceListener, org.springframework.cloud.stream.binder.kafka.utils.DlqPartitionFunction dlqPartitionFunction, org.springframework.cloud.stream.binder.kafka.utils.DlqDestinationResolver dlqDestinationResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientFactoryCustomizer(ClientFactoryCustomizer customizer) voidaddConsumerConfigCustomizer(org.springframework.cloud.stream.binder.kafka.support.ConsumerConfigCustomizer consumerConfigCustomizer) voidaddProducerConfigCustomizer(org.springframework.cloud.stream.binder.kafka.support.ProducerConfigCustomizer producerConfigCustomizer) protected org.springframework.integration.core.MessageProducercreateConsumerEndpoint(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> extendedConsumerProperties) protected org.springframework.kafka.core.ConsumerFactory<?,?> createKafkaConsumerFactory(boolean anonymous, String consumerGroup, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> consumerProperties, String beanName, String destination) protected org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.PolledConsumerResourcescreatePolledConsumerResources(String name, String group, org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> extendedConsumerProperties) protected org.springframework.messaging.MessageHandlercreateProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties, org.springframework.messaging.MessageChannel errorChannel) protected org.springframework.messaging.MessageHandlercreateProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties, org.springframework.messaging.MessageChannel channel, org.springframework.messaging.MessageChannel errorChannel) protected voidcustomizeProducerMessageHandler(org.springframework.messaging.MessageHandler producerMessageHandler, String destinationName) doGetAdditionalConfigurationProperties(String destinationName) Returns an unmodifiable copy ofContainerPropertiesassociated with the destination name which corresponds to a particular binding which could be accessed under 'containerProperties' key.protected org.springframework.messaging.MessageHandlergetErrorMessageHandler(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> properties) protected org.springframework.integration.support.ErrorMessageStrategyorg.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerPropertiesgetExtendedConsumerProperties(String channelName) org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerPropertiesgetExtendedProducerProperties(String channelName) Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider>protected org.springframework.messaging.MessageHandlergetPolledConsumerErrorMessageHandler(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> properties) protected org.springframework.kafka.core.DefaultKafkaProducerFactory<byte[],byte[]> getProducerFactory(String transactionIdPrefix, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties, String beanName, String destination) org.springframework.kafka.core.ProducerFactory<byte[],byte[]> Return a reference to the binder's transaction manager's producer factory (if configured).protected voidonInit()protected voidpostProcessOutputChannel(org.springframework.messaging.MessageChannel outputChannel, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties) protected voidpostProcessPollableSource(org.springframework.cloud.stream.binder.DefaultPollableMessageSource bindingTarget) voidsetDlqDestinationResolver(org.springframework.cloud.stream.binder.kafka.utils.DlqDestinationResolver dlqDestinationResolver) voidsetDlqPartitionFunction(org.springframework.cloud.stream.binder.kafka.utils.DlqPartitionFunction dlqPartitionFunction) voidsetExtendedBindingProperties(org.springframework.cloud.stream.binder.kafka.properties.KafkaExtendedBindingProperties extendedBindingProperties) voidsetProducerListener(org.springframework.kafka.support.ProducerListener<byte[], byte[]> producerListener) voidsetRebalanceListener(KafkaBindingRebalanceListener rebalanceListener) voidsetupRebalanceListener(org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> extendedConsumerProperties, org.springframework.kafka.listener.ContainerProperties containerProperties) protected booleanuseNativeEncoding(org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties) Methods inherited from class org.springframework.cloud.stream.binder.AbstractMessageChannelBinder
afterUnbindConsumer, afterUnbindProducer, bindPollableConsumer, doBindConsumer, doBindProducer, errorsBaseName, errorsBaseName, getApplicationEventPublisher, getContainerCustomizer, getDefaultErrorMessageHandler, getErrorBridgeName, getErrorBridgeName, getErrorMessageHandlerName, getErrorRecovererName, getMessageSourceCustomizer, getPolledConsumerRecoveryCallback, registerErrorInfrastructure, registerErrorInfrastructure, setApplicationEventPublisher, setConsumerEndpointCustomizer, setContainerCustomizer, setProducerMessageHandlerCustomizerMethods inherited from class org.springframework.cloud.stream.binder.AbstractBinder
afterPropertiesSet, applyPrefix, bindConsumer, bindProducer, buildRetryTemplate, constructDLQName, getApplicationContext, getBeanFactory, getBindingServiceProperties, getEvaluationContext, groupedName, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.stream.binder.Binder
bindConsumer, bindProducerMethods inherited from interface org.springframework.cloud.stream.binder.ExtendedBindingProperties
getBindings
-
Field Details
-
X_EXCEPTION_FQCN
Kafka header for x-exception-fqcn.- See Also:
-
X_EXCEPTION_STACKTRACE
Kafka header for x-exception-stacktrace.- See Also:
-
X_EXCEPTION_MESSAGE
Kafka header for x-exception-message.- See Also:
-
X_ORIGINAL_TOPIC
Kafka header for x-original-topic.- See Also:
-
X_ORIGINAL_PARTITION
Kafka header for x-original-partition.- See Also:
-
X_ORIGINAL_OFFSET
Kafka header for x-original-offset.- See Also:
-
X_ORIGINAL_TIMESTAMP
Kafka header for x-original-timestamp.- See Also:
-
X_ORIGINAL_TIMESTAMP_TYPE
Kafka header for x-original-timestamp-type.- See Also:
-
-
Constructor Details
-
KafkaMessageChannelBinder
public KafkaMessageChannelBinder(org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties configurationProperties, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner provisioningProvider) -
KafkaMessageChannelBinder
public KafkaMessageChannelBinder(org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties configurationProperties, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner provisioningProvider, org.springframework.cloud.stream.config.ListenerContainerCustomizer<org.springframework.kafka.listener.AbstractMessageListenerContainer<?, ?>> containerCustomizer, KafkaBindingRebalanceListener rebalanceListener) -
KafkaMessageChannelBinder
public KafkaMessageChannelBinder(org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties configurationProperties, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner provisioningProvider, org.springframework.cloud.stream.config.ListenerContainerCustomizer<org.springframework.kafka.listener.AbstractMessageListenerContainer<?, ?>> containerCustomizer, org.springframework.cloud.stream.config.MessageSourceCustomizer<org.springframework.integration.kafka.inbound.KafkaMessageSource<?, ?>> sourceCustomizer, KafkaBindingRebalanceListener rebalanceListener, org.springframework.cloud.stream.binder.kafka.utils.DlqPartitionFunction dlqPartitionFunction, org.springframework.cloud.stream.binder.kafka.utils.DlqDestinationResolver dlqDestinationResolver)
-
-
Method Details
-
onInit
- Overrides:
onInitin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner> - Throws:
Exception
-
setExtendedBindingProperties
public void setExtendedBindingProperties(org.springframework.cloud.stream.binder.kafka.properties.KafkaExtendedBindingProperties extendedBindingProperties) -
setProducerListener
public void setProducerListener(org.springframework.kafka.support.ProducerListener<byte[], byte[]> producerListener) -
addClientFactoryCustomizer
-
setRebalanceListener
-
setDlqPartitionFunction
public void setDlqPartitionFunction(org.springframework.cloud.stream.binder.kafka.utils.DlqPartitionFunction dlqPartitionFunction) -
setDlqDestinationResolver
public void setDlqDestinationResolver(org.springframework.cloud.stream.binder.kafka.utils.DlqDestinationResolver dlqDestinationResolver) -
getExtendedConsumerProperties
public org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties getExtendedConsumerProperties(String channelName) - Specified by:
getExtendedConsumerPropertiesin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties,org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>
-
getExtendedProducerProperties
public org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties getExtendedProducerProperties(String channelName) - Specified by:
getExtendedProducerPropertiesin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties,org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>
-
getDefaultsPrefix
- Specified by:
getDefaultsPrefixin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties,org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>
-
getExtendedPropertiesEntryClass
public Class<? extends org.springframework.cloud.stream.binder.BinderSpecificPropertiesProvider> getExtendedPropertiesEntryClass()- Specified by:
getExtendedPropertiesEntryClassin interfaceorg.springframework.cloud.stream.binder.ExtendedBindingProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties,org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>
-
getTransactionalProducerFactory
@Nullable public org.springframework.kafka.core.ProducerFactory<byte[],byte[]> getTransactionalProducerFactory()Return a reference to the binder's transaction manager's producer factory (if configured). Use this to create a transaction manager in a bean definition when you wish to use producer-only transactions.- Returns:
- the transaction manager, or null.
-
getBinderIdentity
- Specified by:
getBinderIdentityin interfaceorg.springframework.cloud.stream.binder.Binder<org.springframework.messaging.MessageChannel,org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>>
-
createProducerMessageHandler
protected org.springframework.messaging.MessageHandler createProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties, org.springframework.messaging.MessageChannel errorChannel) throws Exception - Specified by:
createProducerMessageHandlerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner> - Throws:
Exception
-
createProducerMessageHandler
protected org.springframework.messaging.MessageHandler createProducerMessageHandler(org.springframework.cloud.stream.provisioning.ProducerDestination destination, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties, org.springframework.messaging.MessageChannel channel, org.springframework.messaging.MessageChannel errorChannel) throws Exception - Overrides:
createProducerMessageHandlerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner> - Throws:
Exception
-
customizeProducerMessageHandler
protected void customizeProducerMessageHandler(org.springframework.messaging.MessageHandler producerMessageHandler, String destinationName) - Overrides:
customizeProducerMessageHandlerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
postProcessOutputChannel
protected void postProcessOutputChannel(org.springframework.messaging.MessageChannel outputChannel, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties) - Overrides:
postProcessOutputChannelin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
getProducerFactory
protected org.springframework.kafka.core.DefaultKafkaProducerFactory<byte[],byte[]> getProducerFactory(String transactionIdPrefix, org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties, String beanName, String destination) -
useNativeEncoding
protected boolean useNativeEncoding(org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties> producerProperties) - Overrides:
useNativeEncodingin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
createConsumerEndpoint
protected org.springframework.integration.core.MessageProducer createConsumerEndpoint(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> extendedConsumerProperties) - Specified by:
createConsumerEndpointin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
doGetAdditionalConfigurationProperties
Returns an unmodifiable copy ofContainerPropertiesassociated with the destination name which corresponds to a particular binding which could be accessed under 'containerProperties' key.- Overrides:
doGetAdditionalConfigurationPropertiesin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner> - Parameters:
destinationName- the name of the destination (or binding name if destination is not specified)- Returns:
- map of
-
setupRebalanceListener
public void setupRebalanceListener(org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> extendedConsumerProperties, org.springframework.kafka.listener.ContainerProperties containerProperties) -
createPolledConsumerResources
protected org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.PolledConsumerResources createPolledConsumerResources(String name, String group, org.springframework.cloud.stream.provisioning.ConsumerDestination destination, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> extendedConsumerProperties) - Overrides:
createPolledConsumerResourcesin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
postProcessPollableSource
protected void postProcessPollableSource(org.springframework.cloud.stream.binder.DefaultPollableMessageSource bindingTarget) - Overrides:
postProcessPollableSourcein classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
getErrorMessageStrategy
protected org.springframework.integration.support.ErrorMessageStrategy getErrorMessageStrategy()- Overrides:
getErrorMessageStrategyin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
getErrorMessageHandler
protected org.springframework.messaging.MessageHandler getErrorMessageHandler(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> properties) - Overrides:
getErrorMessageHandlerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
getPolledConsumerErrorMessageHandler
protected org.springframework.messaging.MessageHandler getPolledConsumerErrorMessageHandler(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, String group, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> properties) - Overrides:
getPolledConsumerErrorMessageHandlerin classorg.springframework.cloud.stream.binder.AbstractMessageChannelBinder<org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties>,org.springframework.cloud.stream.binder.ExtendedProducerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaProducerProperties>, org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner>
-
createKafkaConsumerFactory
protected org.springframework.kafka.core.ConsumerFactory<?,?> createKafkaConsumerFactory(boolean anonymous, String consumerGroup, org.springframework.cloud.stream.binder.ExtendedConsumerProperties<org.springframework.cloud.stream.binder.kafka.properties.KafkaConsumerProperties> consumerProperties, String beanName, String destination) -
addConsumerConfigCustomizer
public void addConsumerConfigCustomizer(org.springframework.cloud.stream.binder.kafka.support.ConsumerConfigCustomizer consumerConfigCustomizer) -
addProducerConfigCustomizer
public void addProducerConfigCustomizer(org.springframework.cloud.stream.binder.kafka.support.ProducerConfigCustomizer producerConfigCustomizer)
-