Example #1
0
def fanout_cast_to_server(conf, context, server_params, topic, msg):
    """Sends a message on a fanout exchange to a specific server."""
    return rpc_amqp.cast_to_server(conf, context, server_params, topic, msg,
            rpc_amqp.get_connection_pool(conf, Connection))
Example #2
0
def cast_to_server(conf, context, server_params, topic, msg):
    """Sends a message on a topic to a specific server."""
    return rpc_amqp.cast_to_server(
        conf, context, server_params, topic, msg,
        rpc_amqp.get_connection_pool(conf, Connection))
Example #3
0
def fanout_cast_to_server(context, server_params, topic, msg):
    """Sends a message on a fanout exchange to a specific server."""
    return rpc_amqp.cast_to_server(context, server_params, topic, msg,
                                   Connection.pool)
Example #4
0
def cast_to_server(context, server_params, topic, msg):
    """Sends a message on a topic to a specific server."""
    return rpc_amqp.cast_to_server(context, server_params, topic, msg,
            Connection.pool)