amqp_director v1.5.1 AmqpDirector.PullClient View Source

The AMQP RPC pull client.

The pull client is meant to be used for pulling information over AMQP using :'basic.get'. See AmqpDirector.pull_client_child_spec/3 for details on how to start the client.

Link to this section Summary


Query the queue for data

Link to this section Functions

Link to this function pull(client, queue) View Source
pull(client :: atom() | pid(), queue :: String.t()) :: {:ok, binary()} | :empty

Query the queue for data.

Sends a request to pull data from the queue. Returns :empty if no data is present.