Manages emqtt connection lifecycle.
Each producer instance gets its own connection with:
auto_ack: falsefor delayed acknowledgementsmax_inflightfor protocol-level backpressure- Unique client ID per producer index
Summary
Functions
Returns the client ID the connection will advertise to the broker, given a producer config and producer index. Pure — callers can use this to correlate telemetry or logs without waiting for the connection to be established.
Types
Functions
@spec disconnect(pid()) :: :ok
@spec get_client_id( keyword(), non_neg_integer() ) :: String.t()
Returns the client ID the connection will advertise to the broker, given a producer config and producer index. Pure — callers can use this to correlate telemetry or logs without waiting for the connection to be established.
@spec pause(pid()) :: :ok
@spec puback(pid(), non_neg_integer()) :: :ok
@spec pubcomp(pid(), non_neg_integer()) :: :ok
@spec start_link( keyword(), non_neg_integer() ) :: {:ok, pid()} | {:error, term()}