Package org.sdase.commons.server.kafka
Class KafkaBundle.Builder<T extends io.dropwizard.Configuration>
- java.lang.Object
-
- org.sdase.commons.server.kafka.KafkaBundle.Builder<T>
-
- All Implemented Interfaces:
KafkaBundle.FinalBuilder<T>
,KafkaBundle.InitialBuilder
- Enclosing class:
- KafkaBundle<C extends io.dropwizard.Configuration>
public static class KafkaBundle.Builder<T extends io.dropwizard.Configuration> extends java.lang.Object implements KafkaBundle.InitialBuilder, KafkaBundle.FinalBuilder<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaBundle<T>
build()
<C extends io.dropwizard.Configuration>
KafkaBundle.FinalBuilder<C>withConfigurationProvider(KafkaConfigurationProvider<C> configurationProvider)
KafkaBundle.FinalBuilder<T>
withoutHealthCheck()
Disables the health check for Kafka.
-
-
-
Method Detail
-
withoutHealthCheck
public KafkaBundle.FinalBuilder<T> withoutHealthCheck()
Description copied from interface:KafkaBundle.FinalBuilder
Disables the health check for Kafka. By disabling the health check the service can stay healthy even if the connection to Kafka is disrupted, if Kafka is not essential to the functionality. However, disabling it still registers an external health check to be able to monitor the connection.- Specified by:
withoutHealthCheck
in interfaceKafkaBundle.FinalBuilder<T extends io.dropwizard.Configuration>
- Returns:
- the same builder instance
-
build
public KafkaBundle<T> build()
- Specified by:
build
in interfaceKafkaBundle.FinalBuilder<T extends io.dropwizard.Configuration>
-
withConfigurationProvider
public <C extends io.dropwizard.Configuration> KafkaBundle.FinalBuilder<C> withConfigurationProvider(KafkaConfigurationProvider<C> configurationProvider)
- Specified by:
withConfigurationProvider
in interfaceKafkaBundle.InitialBuilder
- Type Parameters:
C
- the type of the applications configuration class- Parameters:
configurationProvider
- the method reference that provides the @KafkaConfiguration
from the applications configurations class- Returns:
- the same builder instance
-
-