Example usage for org.springframework.kafka.config KafkaStreamsConfiguration asProperties

List of usage examples for org.springframework.kafka.config KafkaStreamsConfiguration asProperties

Introduction

In this page you can find the example usage for org.springframework.kafka.config KafkaStreamsConfiguration asProperties.

Prototype

public Properties asProperties() 

Source Link

Document

Return the configuration map as a Properties .

Usage

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

/**
 * Construct an instance with the supplied streams configuration and
 * clean up configuration.//from  w w w  .j  a v  a2 s.com
 * @param streamsConfig the streams configuration.
 * @param cleanupConfig the cleanup configuration.
 * @since 2.2
 */
public StreamsBuilderFactoryBean(KafkaStreamsConfiguration streamsConfig, CleanupConfig cleanupConfig) {
    Assert.notNull(streamsConfig, STREAMS_CONFIG_MUST_NOT_BE_NULL);
    Assert.notNull(cleanupConfig, CLEANUP_CONFIG_MUST_NOT_BE_NULL);
    this.properties = streamsConfig.asProperties();
    this.cleanupConfig = cleanupConfig;
}