elsa v0.12.3 Elsa.Topic
Provides functions for managing and interacting with topics in the Kafka cluster.
Link to this section Summary
Functions
Creates the supplied topic within the cluster. Sets the number of desired partitions and replication factor for the topic based on the optional keyword list. If the optional configs are not specified by the caller, the number of partitions and replicas defaults to 1.
Deletes the supplied topic from the cluster.
Confirms or denies the existence of a topic managed by the cluster.
Returns a list of all topics managed by the cluster as tuple of topic name and number of partitions.
Link to this section Functions
create(endpoints, topic, opts \\ [])
Creates the supplied topic within the cluster. Sets the number of desired partitions and replication factor for the topic based on the optional keyword list. If the optional configs are not specified by the caller, the number of partitions and replicas defaults to 1.
delete(endpoints, topic)
Deletes the supplied topic from the cluster.
Confirms or denies the existence of a topic managed by the cluster.
list(endpoints)
Returns a list of all topics managed by the cluster as tuple of topic name and number of partitions.