Class AsyncHealthIndicatorAutoConfiguration
java.lang.Object
org.apache.camel.spring.boot.actuate.health.AsyncHealthIndicatorAutoConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Configuration
@ConditionalOnProperty(prefix="camel.health",
name="async-camel-health-check",
havingValue="true")
public class AsyncHealthIndicatorAutoConfiguration
extends Object
implements org.springframework.beans.factory.InitializingBean
Configuration class that replace synchronous Camel Health Checks with asynchronous ones.
This implementation is based on https://github.com/spring-projects/spring-boot/issues/2652 that most probably will be
added in spring boot 3.2.x as a new feature in the future.
TODO: To be refactored once async health contributors feature will be added in spring boot.
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncHealthIndicatorAutoConfiguration(org.springframework.boot.actuate.health.HealthContributorRegistry healthContributorRegistry, CamelHealthCheckConfigurationProperties config) -
Method Summary
-
Constructor Details
-
AsyncHealthIndicatorAutoConfiguration
public AsyncHealthIndicatorAutoConfiguration(org.springframework.boot.actuate.health.HealthContributorRegistry healthContributorRegistry, CamelHealthCheckConfigurationProperties config)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-