View Source PulsarEx (PulsarEx v0.14.1)
Summary
Functions
List all the consumers on default cluster
List all the consumers for cluster
List all the consumers for cluster on a specific topic
List all the consumers for cluster on a specific topic with specific subscription
Publish a message to pulsar, create a pool of producers if not yet created
Start consumer from a fully quantified topic
Start consumers with topic pattern
Stop consumers with fully quantified topic
Stop consumers with topic pattern
Types
Functions
List all the consumers on default cluster
List all the consumers for cluster
List all the consumers for cluster on a specific topic
List all the consumers for cluster on a specific topic with specific subscription
produce(topic_name, payload, message_opts \\ [], producer_opts \\ [])
View Source@spec produce(String.t(), binary(), keyword(), keyword()) :: {:ok, %PulsarEx.Proto.MessageIdData{ __unknown_fields__: term(), ack_set: term(), batch_index: term(), batch_size: term(), entryId: term(), ledgerId: term(), partition: term() }} | {:error, any()}
Publish a message to pulsar, create a pool of producers if not yet created
@spec start_consumer(topic_name(), subscription(), module(), keyword()) :: :ok | {:error, any()}
Start consumer from a fully quantified topic
start_consumer(tenant, namespace, topic, subscription, module, opts)
View Source@spec start_consumer( tenant(), namespace(), topic(), subscription(), module(), keyword() ) :: :ok | {:error, any()}
Start consumers with topic pattern
@spec stop_consumer(topic(), subscription()) :: :ok
Stop consumers with fully quantified topic
@spec stop_consumer(tenant(), namespace(), topic(), subscription()) :: :ok
Stop consumers with topic pattern