Module sp_client

This module implements Synchronous Pull (i.e.

Behaviours: gen_server.

Description

This module implements Synchronous Pull (i.e. #'basic get') over AMQP. It handles the reconnection and restart of failed child processes

Function Index

code_change/3
format_status/2
get_queue_attributes/2
handle_call/3
handle_cast/2
handle_info/2
init/1
pull/2
purge/2
start_link/3
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

format_status/2

format_status(Opt, X2) -> any()

get_queue_attributes/2

get_queue_attributes(PullClient::atom(), Queue::binary()) -> {ok, integer(), integer()}

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(Request, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(X1) -> any()

pull/2

pull(PullClient::atom() | pid(), Queue::binary()) -> {ok, binary()} | empty

purge/2

purge(PullClient::atom(), Queue::binary()) -> {ok, integer()}

start_link/3

start_link(Name::atom(), Configuration::term(), ConnRef::pid()) -> {ok, pid()}

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc