@ConfigurationProperties(value="kafka.embedded")
public class KafkaEmbeddedConfiguration
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX
The prefix used for configuration.
|
Constructor and Description |
---|
KafkaEmbeddedConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getProperties() |
java.util.List<java.lang.String> |
getTopics() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Sets whether the embedded Kafka server is enabled.
|
void |
setProperties(java.util.Properties properties)
Sets the broker properties.
|
void |
setTopics(java.util.List<java.lang.String> topics)
The topics that should be created by the embedded instance.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- True if it is.@Nonnull public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
properties
- The broker properties.public java.util.List<java.lang.String> getTopics()
public void setTopics(java.util.List<java.lang.String> topics)
topics
- The topic names