TaskBunny v0.0.1-dev.6 TaskBunny.Consumer

Functions that work on RabbitMQ consumer

Summary

Functions

Acknowledges to the message

Cancel consumer to stop receiving messages

Opens a channel for the given connection and start consuming messages for the queue

Functions

ack(channel, meta, succeeded)
ack(%AMQP.Channel{conn: term, pid: term}, map, boolean) :: :ok

Acknowledges to the message.

cancel(channel, consumer_tag)
cancel(AMQP.Channel.t, String.t) :: {:ok, String.t}

Cancel consumer to stop receiving messages.

consume(connection, queue, concurrency)
consume(struct, String.t, integer) ::
  {struct, String.t} |
  nil

Opens a channel for the given connection and start consuming messages for the queue.