def create_worker(self, topic, proxy, pool_name): """ """ proxy_cb = rpc_amqp.ProxyCallback( self.conf, proxy, rpc_amqp.get_connection_pool(self.conf, Connection)) self.declare_topic_consumer(topic, proxy_cb, pool_name)
def create_consumer(self, topic, proxy, fanout=False): proxy_cb = rpc_amqp.ProxyCallback( self.conf, proxy, rpc_amqp.get_connection_pool(self.pool, Connection)) if fanout: self.declare_fanout_consumer(topic, proxy_cb) else: self.declare_topic_consumer(topic, proxy_cb)
def notify(conf, topic, msg): """ """ return rpc_amqp.notify(conf, topic, msg, rpc_amqp.get_connection_pool(conf, Connection))
def fanout_cast_to_server(conf, server_params, topic, msg): """ """ return rpc_amqp.fanout_cast_to_server( conf, server_params, topic, msg, rpc_amqp.get_connection_pool(conf, Connection()))
def fanout_cast(conf, topic, msg): """ """ return rpc_amqp.fanout_cast(conf, topic, msg, rpc_amqp.get_connection_pool(conf, Connection))
def call(conf, topic, msg, timeout=None): """ """ return rpc_amqp.call(conf, topic, msg, timeout, rpc_amqp.get_connection_pool(conf, Connection))
def multicall(conf, topic, msg, timeout=None): return rpc_amqp.multicall(conf, topic, msg, timeout, rpc_amqp.get_connection_pool(conf, Connection))
def create_connection(conf, new=True): """ """ return rpc_amqp.create_connection( conf, new, rpc_amqp.get_connection_pool(conf, Connection))
def fanout_cast_to_server(conf, server_params, topic, msg): """ """ return rpc_amqp.fanout_cast_to_server( conf, server_params, topic, msg, rpc_amqp.get_connection_pool(conf, Connection()) )
def create_connection(conf, new=True): """ """ return rpc_amqp.create_connection(conf, new, rpc_amqp.get_connection_pool(conf, Connection))
def create_worker(self, topic, proxy, pool_name): """ """ proxy_cb = rpc_amqp.ProxyCallback(self.conf, proxy, rpc_amqp.get_connection_pool(self.conf, Connection)) self.declare_topic_consumer(topic, proxy_cb, pool_name)
def create_consumer(self, topic, proxy, fanout=False): proxy_cb = rpc_amqp.ProxyCallback(self.conf, proxy, rpc_amqp.get_connection_pool(self.pool, Connection)) if fanout: self.declare_fanout_consumer(topic, proxy_cb) else: self.declare_topic_consumer(topic, proxy_cb)