Class AbstractKafkaStreamsConfiguration<K,V>
java.lang.Object
io.micronaut.configuration.kafka.config.AbstractKafkaConfiguration<K,V>
io.micronaut.configuration.kafka.streams.AbstractKafkaStreamsConfiguration<K,V>
- Type Parameters:
K- The key deserializer typeV- The value deserializer type
- All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.core.util.Toggleable
- Direct Known Subclasses:
DefaultKafkaStreamsConfiguration, KafkaStreamsConfiguration
public class AbstractKafkaStreamsConfiguration<K,V>
extends AbstractKafkaConfiguration<K,V>
implements io.micronaut.core.naming.Named
Abstract streams configuration.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
FieldsFields inherited from class AbstractKafkaConfiguration
DEFAULT_BOOTSTRAP_SERVERS, DEFAULT_KAFKA_PORT, EMBEDDED_TOPICS, PREFIX, TOPICS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractKafkaStreamsConfiguration(KafkaDefaultConfiguration defaultConfiguration) Construct a newKafkaStreamsConfigurationfor the given defaults. -
Method Summary
Modifier and TypeMethodDescriptionThe time to wait for the stream to shut down.@NonNull StringgetName()The logical name of the stream.protected voidinit(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment, Properties config) Shared initialization.voidsetCloseTimeout(Duration closeTimeout) voidMethods inherited from class AbstractKafkaConfiguration
getConfig, toKafkaPropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Field Details
-
DEFAULT_NAME
- See Also:
-
DEFAULT_CLOSE_TIMEOUT
-
-
Constructor Details
-
AbstractKafkaStreamsConfiguration
Construct a newKafkaStreamsConfigurationfor the given defaults.- Parameters:
defaultConfiguration- The default configuration
-
-
Method Details
-
init
protected void init(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment, Properties config) Shared initialization.- Parameters:
applicationConfiguration- The application configenvironment- The envconfig- The config to be initialized
-
getCloseTimeout
The time to wait for the stream to shut down. Default value is 3s.- Returns:
- the time to wait for the stream to shut down.
-
setCloseTimeout
- Parameters:
closeTimeout- the time to wait for the stream to shut down
-
getName
The logical name of the stream.- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Returns:
- the logical name of the stream
-
setName
- Parameters:
name- the logical name of the stream
-