spotter v0.5.1 Spotter.Testing.AmqpBlockingClient

A blocking AMPQ client for testing purposes and simple RPC use cases.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Initializes QoS, a queue and an exchanges for the channel

Returns the message from the certain queue if it exists

Initializes a new connection and a channel

Sends a new message without waiting for a response

Initializes a new blocking GenServer instance

Stop the client and close the existing connection

Link to this section Functions

Link to this function child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function configure_channel(pid, channel_opts, call_timeout \\ 500)

Initializes QoS, a queue and an exchanges for the channel.

Link to this function consume(pid, queue, timeout \\ 1000, attempts \\ 5, call_timeout \\ 500)

Returns the message from the certain queue if it exists.

Initializes a new connection and a channel.

Link to this function send(pid, data, opts, call_timeout \\ 5000)

Sends a new message without waiting for a response.

Link to this function send_and_wait(pid, data, opts, timeout \\ 1000, attempts \\ 5, call_timeout \\ 5000)

Sends a new message and wait for result.

Link to this function start_link(opts, name \\ __MODULE__)

Initializes a new blocking GenServer instance.

Stop the client and close the existing connection.