Example usage for org.springframework.kafka.config MethodKafkaListenerEndpoint setMethod

List of usage examples for org.springframework.kafka.config MethodKafkaListenerEndpoint setMethod

Introduction

In this page you can find the example usage for org.springframework.kafka.config MethodKafkaListenerEndpoint setMethod.

Prototype

public void setMethod(Method method) 

Source Link

Document

Set the method to invoke to process a message managed by this endpoint.

Usage

From source file:org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor.java

protected void processKafkaListener(KafkaListener kafkaListener, Method method, Object bean, String beanName) {
    Method methodToUse = checkProxy(method, bean);
    MethodKafkaListenerEndpoint<K, V> endpoint = new MethodKafkaListenerEndpoint<K, V>();
    endpoint.setMethod(methodToUse);
    endpoint.setBeanFactory(this.beanFactory);
    processListener(endpoint, kafkaListener, bean, methodToUse, beanName);
}