A wrapper object around the exchange, routing_key, and a dictionary of parameters that will be json encoded into the body of the rabbit message.
RPCRequest is hashable and can therefore be used as a key in a dictionary.
A convenience object for using AsyncTornadoRPCClient in a non-blocking manner within a Tornado handler. Calls to rpc() will return an instance of RPCResponseFuture. The user may then call RPCResponseFuture.get() in order to retrieve the result of the RPC. Using tornado.gen.Task is recommended for calling get().
Wait for the RPC associated with this RPCResponseFuture to return a result. When the result is received, resolve the task by calling the passed in callback.
Parameters: |
|
---|
Wrap pika.adapters.tornado_connection.TornadoConnection to provide a simple RPC client powered by tornado.gen.engine semantics.
Publish an RPC request. Returns a RPCResponseFuture.
Parameters: | rpc_request – An instance of RPCRequest. |
---|