View Source PulsarEx.Connection.ProducerCallback behaviour (PulsarEx v0.14.0)
Summary
Callbacks
Link to this callback
create_producer(conn, producer_id, topic_name, producer_opts, deadline)
View Source@callback send_message( conn :: pid(), producer_id :: integer(), sequence_id :: integer(), message :: %PulsarEx.ProducerMessage{ compression: term(), deliver_at_time: term(), event_time: term(), ordering_key: term(), partition_key: term(), payload: term(), producer_id: term(), producer_name: term(), properties: term(), sequence_id: term(), topic: term() }, deadline :: integer() ) :: :ok | {:error, term()}
@callback send_messages( conn :: pid(), producer_id :: integer(), sequence_id :: integer(), messages :: [ %PulsarEx.ProducerMessage{ compression: term(), deliver_at_time: term(), event_time: term(), ordering_key: term(), partition_key: term(), payload: term(), producer_id: term(), producer_name: term(), properties: term(), sequence_id: term(), topic: term() } ], deadline :: integer() ) :: :ok | {:error, term()}