View Source PulsarEx.ProducerCallback behaviour (PulsarEx v0.14.0)
Summary
Callbacks
Link to this callback
produce(cluster_name, topic_name, payload, message_opts, producer_opts)
View Source@callback produce( cluster_name :: atom() | String.t(), topic_name :: String.t(), payload :: binary(), message_opts :: keyword(), producer_opts :: keyword() ) :: {:ok, %PulsarEx.Proto.MessageIdData{ __unknown_fields__: term(), ack_set: term(), batch_index: term(), batch_size: term(), entryId: term(), ledgerId: term(), partition: term() }} | {:error, term()}