org.reactivecommons.async.kafka.config.props.AsyncKafkaPropsDomain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of async-kafka-starter Show documentation
Show all versions of async-kafka-starter Show documentation
Abstract your broker with semantic async messages
package org.reactivecommons.async.kafka.config.props;
import lombok.Getter;
import lombok.Setter;
import org.reactivecommons.async.kafka.config.KafkaProperties;
import org.reactivecommons.async.starter.GenericAsyncPropsDomain;
import org.springframework.beans.factory.annotation.Value;
import java.lang.reflect.Constructor;
@Getter
@Setter
public class AsyncKafkaPropsDomain extends GenericAsyncPropsDomain {
public AsyncKafkaPropsDomain(@Value("${spring.application.name}") String defaultAppName,
KafkaProperties defaultKafkaProperties,
AsyncKafkaPropsDomainProperties configured,
KafkaSecretFiller kafkaSecretFiller) {
super(defaultAppName, defaultKafkaProperties, configured, kafkaSecretFiller, AsyncKafkaProps.class,
KafkaProperties.class);
}
@SuppressWarnings("unchecked")
public static AsyncPropsDomainBuilder builder() {
return GenericAsyncPropsDomain.builder(AsyncKafkaProps.class,
KafkaProperties.class,
AsyncKafkaPropsDomainProperties.class,
(Constructor) AsyncKafkaPropsDomain.class.getDeclaredConstructors()[0]);
}
public interface KafkaSecretFiller extends GenericAsyncPropsDomain.SecretFiller {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy