Class KafkaStreamsFunctionProcessor

java.lang.Object
org.springframework.cloud.stream.binder.kafka.streams.AbstractKafkaStreamsBinderProcessor
org.springframework.cloud.stream.binder.kafka.streams.KafkaStreamsFunctionProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware

public class KafkaStreamsFunctionProcessor extends AbstractKafkaStreamsBinderProcessor implements org.springframework.beans.factory.BeanFactoryAware
Since:
2.2.0
Author:
Soby Chacko
  • Constructor Details

  • Method Details

    • setupFunctionInvokerForKafkaStreams

      public void setupFunctionInvokerForKafkaStreams(org.springframework.core.ResolvableType resolvableType, String functionName, KafkaStreamsBindableProxyFactory kafkaStreamsBindableProxyFactory, Method method, org.springframework.core.ResolvableType outputResolvableType, String... composedFunctionNames)
      This method must be kept stateless. In the case of multiple function beans in an application, isolated 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.
      Parameters:
      resolvableType - type of the binding
      functionName - bean name of the function
      kafkaStreamsBindableProxyFactory - bindable proxy factory for the Kafka Streams type
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException