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

io.github.majusko.pulsar2.solon.Pulsar2ProducerConfiguration Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
package io.github.majusko.pulsar2.solon;

import org.apache.pulsar.client.api.ConsumerInterceptor;
import org.apache.pulsar.client.api.PulsarClient;
import org.apache.pulsar.client.api.interceptor.ProducerInterceptor;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Condition;
import org.noear.solon.annotation.Configuration;

import io.github.majusko.pulsar2.solon.consumer.ConsumerAggregator;
import io.github.majusko.pulsar2.solon.consumer.DefaultConsumerInterceptor;
import io.github.majusko.pulsar2.solon.producer.DefaultProducerInterceptor;
import io.github.majusko.pulsar2.solon.properties.ConsumerProperties;
import io.github.majusko.pulsar2.solon.properties.PulsarProperties;

@Configuration
public class Pulsar2ProducerConfiguration {

    @Bean
    @Condition(onMissingBean = ProducerInterceptor.class)
    public ProducerInterceptor producerInterceptor(){
        return new DefaultProducerInterceptor();
    }
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy