AdminOps
Trait for admin-level actions on Kafka components. Relies on org.apache.kafka.clients.admin.AdminClient
.
Type parameters
- C
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Creates a topic with a custom configuration.
Creates a topic with a custom configuration.
Value parameters
- config
-
an implicit EmbeddedKafkaConfig
- partitions
-
number of partitions
- replicationFactor
-
replication factor
- topic
-
the topic name
- topicConfig
-
per topic configuration
Map
Attributes
Either deletes or marks for deletion a list of topics.
Either deletes or marks for deletion a list of topics.
Value parameters
- config
-
an implicit EmbeddedKafkaConfig
- topics
-
the topic names
Attributes
Describe the topics.
Describe the topics.
Value parameters
- config
-
an implicit EmbeddedKafkaConfig
- topics
-
the topic names to describe
Attributes
- Returns
-
the list of topic names
Lists the topics available.
Lists the topics available.
Value parameters
- config
-
an implicit EmbeddedKafkaConfig
Attributes
- Returns
-
the list of topic names
Creates an AdminClient
, then executes the body passed as a parameter.
Creates an AdminClient
, then executes the body passed as a parameter.
Value parameters
- body
-
the function to execute
- config
-
an implicit EmbeddedKafkaConfig