[rabbitmq-discuss] questions about RpcClient

john doe john.doe44210 at gmail.com
Mon Nov 21 09:11:01 GMT 2011


Thank you Matthias.

If this class is known to *not* be threadsafe, why is there a
"synchronized" statement in primitiveCall? It somewhat confuses me.

John

2011/11/20 Matthias Radestock <matthias at rabbitmq.com>

> On 18/11/11 13:42, john doe wrote:
>
>> Is this class threadsafe? I guess not because channels are not threadsafe?
>>
>
> Correct.
>
>
> Why is the routing key a final attribute? Why is it not a parameter of
>> primitiveCall(...)?
>>
>
> The idea is that you create RpcClients to talk to specific rpc servers.
> The latter are typically identified by a combination of exchange and
> routing key.
>
> Matthias.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111121/71483d3a/attachment.htm>


More information about the rabbitmq-discuss mailing list