gamqp/amqp091/confirm

Publisher confirms: the broker acknowledges each message once it has taken responsibility for it (routed it, and written it to disk when it is persistent and the queue durable).

Values

pub fn select(
  channel: client.Channel,
) -> Result(Nil, core.AmqpError)

Puts the channel in confirm mode. It cannot be turned off again, and it cannot be combined with transactions.

pub fn subscribe(
  channel: client.Channel,
  subject: process.Subject(event.Confirm),
) -> Result(Nil, core.AmqpError)

Also sends each ack and nack to subject, for publishers that track sequence numbers themselves.

pub fn wait(
  channel: client.Channel,
  timeout timeout: Int,
) -> Result(Nil, core.AmqpError)

Waits until every message published so far is confirmed. Fails with Nacked if the broker refused any of them since the previous wait.

✨ Search Document