DeliveryMode

class pika.delivery_mode.DeliveryMode(*values)[source]

Bases: IntEnum

Enum for specifying the message delivery mode.

Inherits from enum.IntEnum so members are usable wherever an integer is expected, including the wire encoder for pika.spec.BasicProperties.delivery_mode.

Attributes:
Transient: The message is not written to disk and may be lost if the

broker crashes.

Persistent: The message is written to disk and will survive broker

crashes.

Persistent = 2
Transient = 1