Skip to content

ExchangeType

faststream.rabbit.schemas.constants.ExchangeType #

Bases: str, Enum

A class to represent the exchange type.

ATTRIBUTE DESCRIPTION
FANOUT

fanout exchange type

DIRECT

direct exchange type

TOPIC

topic exchange type

HEADERS

headers exchange type

X_DELAYED_MESSAGE

x-delayed-message exchange type

X_CONSISTENT_HASH

x-consistent-hash exchange type

X_MODULUS_HASH

x-modulus-hash exchange type

FANOUT class-attribute instance-attribute #

FANOUT = 'fanout'

DIRECT class-attribute instance-attribute #

DIRECT = 'direct'

TOPIC class-attribute instance-attribute #

TOPIC = 'topic'

HEADERS class-attribute instance-attribute #

HEADERS = 'headers'

X_DELAYED_MESSAGE class-attribute instance-attribute #

X_DELAYED_MESSAGE = 'x-delayed-message'

X_CONSISTENT_HASH class-attribute instance-attribute #

X_CONSISTENT_HASH = 'x-consistent-hash'

X_MODULUS_HASH class-attribute instance-attribute #

X_MODULUS_HASH = 'x-modulus-hash'