public class KafkaStreamsFunctionProcessor extends AbstractKafkaStreamsBinderProcessor implements org.springframework.beans.factory.BeanFactoryAware
applicationContext
Constructor and Description |
---|
KafkaStreamsFunctionProcessor(org.springframework.cloud.stream.config.BindingServiceProperties bindingServiceProperties,
KafkaStreamsExtendedBindingProperties kafkaStreamsExtendedBindingProperties,
KeyValueSerdeResolver keyValueSerdeResolver,
org.springframework.cloud.stream.binder.kafka.streams.KafkaStreamsBindingInformationCatalogue kafkaStreamsBindingInformationCatalogue,
KafkaStreamsMessageConversionDelegate kafkaStreamsMessageConversionDelegate,
org.springframework.kafka.core.CleanupConfig cleanupConfig,
org.springframework.cloud.stream.function.StreamFunctionProperties streamFunctionProperties,
KafkaStreamsBinderConfigurationProperties kafkaStreamsBinderConfigurationProperties,
org.springframework.kafka.config.StreamsBuilderFactoryBeanCustomizer customizer,
org.springframework.core.env.ConfigurableEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setupFunctionInvokerForKafkaStreams(org.springframework.core.ResolvableType resolvableType,
String functionName,
KafkaStreamsBindableProxyFactory kafkaStreamsBindableProxyFactory)
This method must be kept stateless.
|
buildStreamsBuilderAndRetrieveConfig, getAutoOffsetReset, getKStream, getValueSerde, handleKTableGlobalKTableInputs, setApplicationContext
public KafkaStreamsFunctionProcessor(org.springframework.cloud.stream.config.BindingServiceProperties bindingServiceProperties, KafkaStreamsExtendedBindingProperties kafkaStreamsExtendedBindingProperties, KeyValueSerdeResolver keyValueSerdeResolver, org.springframework.cloud.stream.binder.kafka.streams.KafkaStreamsBindingInformationCatalogue kafkaStreamsBindingInformationCatalogue, KafkaStreamsMessageConversionDelegate kafkaStreamsMessageConversionDelegate, org.springframework.kafka.core.CleanupConfig cleanupConfig, org.springframework.cloud.stream.function.StreamFunctionProperties streamFunctionProperties, KafkaStreamsBinderConfigurationProperties kafkaStreamsBinderConfigurationProperties, org.springframework.kafka.config.StreamsBuilderFactoryBeanCustomizer customizer, org.springframework.core.env.ConfigurableEnvironment environment)
public void setupFunctionInvokerForKafkaStreams(org.springframework.core.ResolvableType resolvableType, String functionName, KafkaStreamsBindableProxyFactory kafkaStreamsBindableProxyFactory)
KafkaStreamsBindableProxyFactory
instances are passed in separately for those functions. If the
state is shared between invocations, that will create potential race conditions. Hence, invocations of this method
should not be dependent on state modified by a previous invocation.resolvableType
- type of the bindingfunctionName
- bean name of the functionkafkaStreamsBindableProxyFactory
- bindable proxy factory for the Kafka Streams typepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.