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

org.reactivecommons.async.starter.config.health.ReactiveCommonsHealthConfig Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
package org.reactivecommons.async.starter.config.health;

import org.reactivecommons.async.starter.config.ConnectionManager;
import org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(AbstractReactiveHealthIndicator.class)
public class ReactiveCommonsHealthConfig {

    @Bean
    @ConditionalOnProperty(prefix = "management.health.reactive-commons", name = "enabled", havingValue = "true",
            matchIfMissing = true)
    public ReactiveCommonsHealthIndicator reactiveCommonsHealthIndicator(ConnectionManager manager) {
        return new ReactiveCommonsHealthIndicator(manager);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy