Behaviours: gen_server.
call/2 | Invokes an RPC. |
start/2 | Starts a new RPC client instance that sends requests to a specified queue. |
start_link/2 | Starts, and links to, a new RPC client instance that sends requests to a specified queue. |
stop/1 | Stops an existing RPC client. |
call(RpcClient, Payload) -> ok
Invokes an RPC. Note the caller of this function is responsible for encoding the request and decoding the response.
start(Connection, Queue) -> RpcClient
Starts a new RPC client instance that sends requests to a specified queue. This function returns the pid of the RPC client process that can be used to invoke RPCs and stop the client.
start_link(Connection, Queue) -> RpcClient
Starts, and links to, a new RPC client instance that sends requests to a specified queue. This function returns the pid of the RPC client process that can be used to invoke RPCs and stop the client.
stop(Pid::RpcClient) -> ok
Stops an existing RPC client.
Generated by EDoc