All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generator.server.springboot.broker.pulsar.PulsarConfiguration.mustache Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package {{packageName}}.wire.pulsar.infrastructure.config;

import org.apache.pulsar.client.api.PulsarClient;
import org.apache.pulsar.client.api.PulsarClientException;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PulsarConfiguration {

  @Bean
  PulsarClient pulsarClient(PulsarProperties properties) throws PulsarClientException {
    return PulsarClient.builder().loadConf(properties.getClientProps()).build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy