This document describes the current stable version of Kombu (5.0). For development docs, go here.
In-memory Transport - kombu.transport.memory¶
In-memory transport.
Transport¶
-
class
kombu.transport.memory.Transport(client, **kwargs)[source]¶ In-memory Transport.
-
class
Channel(connection, **kwargs)¶ In-memory Channel.
-
after_reply_message_received(queue)¶ Callback called after RPC reply received.
Notes
Reply queue semantics: can be used to delete the queue after transient reply message received.
-
close()¶ Close channel.
Cancel all consumers, and requeue unacked messages.
-
do_restore= False¶ flag to restore unacked messages when channel goes out of scope.
-
events= {}¶
-
queues= {}¶
-
supports_fanout= True¶ flag set if the channel supports fanout exchanges.
-
-
driver_name= 'memory'¶ Name of driver library (e.g. ‘py-amqp’, ‘redis’).
-
driver_type= 'memory'¶ Type of driver, can be used to separate transports using the AMQP protocol (driver_type: ‘amqp’), Redis (driver_type: ‘redis’), etc…
-
implements= {'asynchronous': False, 'exchange_type': frozenset({'direct', 'fanout', 'headers', 'topic'}), 'heartbeats': False}¶
-
state= <kombu.transport.virtual.base.BrokerState object>¶ memory backend state is global.
-
class
Channel¶
-
class
kombu.transport.memory.Channel(connection, **kwargs)[source]¶ In-memory Channel.
-
after_reply_message_received(queue)[source]¶ Callback called after RPC reply received.
Notes
Reply queue semantics: can be used to delete the queue after transient reply message received.
-
do_restore= False¶ flag to restore unacked messages when channel goes out of scope.
-
events= {}¶
-
queues= {}¶
-
supports_fanout= True¶ flag set if the channel supports fanout exchanges.
-