Kombu.Channel (Kombu v0.1.0)

Copy Markdown View Source

Unified dispatch interface for Kombu channels (Virtual, Memory, Redis, or test mocks).

Channels in Kombu are typically GenServer processes (referenced by pid), or structs implementing the channel callbacks directly in unit tests.

Summary

Types

t()

@type t() :: pid() | struct() | {module(), term()}

Functions

basic_ack(channel, delivery_tag, opts \\ [])

basic_cancel(channel, consumer_tag)

basic_consume(channel, queue, no_ack, callback, consumer_tag, opts \\ [])

basic_get(channel, queue, opts \\ [])

basic_publish(channel, message, exchange, routing_key, opts \\ [])

basic_qos(channel, prefetch_size, prefetch_count, apply_global \\ false)

basic_recover(channel, opts \\ [])

basic_reject(channel, delivery_tag, opts \\ [])

call(channel, fun, args \\ [])

@spec call(t() | function(), atom(), list()) :: term()

Invokes operation fun with args on channel.

close(channel)

drain_events(channel, opts \\ [])

exchange_bind(channel, destination, source \\ "", routing_key \\ "", opts \\ [])

exchange_declare(channel, exchange, opts \\ [])

exchange_delete(channel, exchange, opts \\ [])

exchange_unbind(channel, destination, source \\ "", routing_key \\ "", opts \\ [])

flow(channel, active)

message_to_python(channel, raw_message)

no_ack_consumers(channel)

prepare_message(channel, body, opts \\ [])

publish_batch(channel, batch)

queue_bind(channel, queue, exchange \\ "", routing_key \\ "", opts \\ [])

queue_declare(channel, queue \\ "", opts \\ [])

queue_delete(channel, queue, opts \\ [])

queue_purge(channel, queue, opts \\ [])

queue_unbind(channel, queue, exchange \\ "", routing_key \\ "", opts \\ [])