Example usage for org.springframework.kafka.listener MessageListenerContainer stop

List of usage examples for org.springframework.kafka.listener MessageListenerContainer stop

Introduction

In this page you can find the example usage for org.springframework.kafka.listener MessageListenerContainer stop.

Prototype

void stop();

Source Link

Document

Stop this component, typically in a synchronous fashion, such that the component is fully stopped upon return of this method.

Usage

From source file:org.springframework.kafka.config.KafkaListenerEndpointRegistry.java

@Override
public void stop() {
    for (MessageListenerContainer listenerContainer : getListenerContainers()) {
        listenerContainer.stop();
    }// ww w  .  j  ava2s .  co  m
}