LoadBalancer.Router.send()
Signature
void send(Object loadBalancer, SimpleEvent event, String routingKey)
Description
Sends an event to a remote receiver. The routing decision is made using the routing key.
Parameters
Name | Type | Description |
loadBalancer | Object | The opaque handle to the loadbalancer that was created in the createLoadBalancerTo(String, String) call. |
event | SimpleEvent | The event to send the message to. |
routingKey | String | The key that will be used to choose a receiver. If the topology has not changed, then messages with the same key sent from any sender will be received by the same receiver. |