[rabbitmq-discuss] How can we stop rpcserver gracefully?

Emile Joubert emile at rabbitmq.com
Fri Oct 5 10:26:45 BST 2012


On 05/10/12 08:14, yuan hongtao wrote:
> We really want to have a function for terminating rpc server, when
> clients still sending msg to that, I mean, that function will make rpc
> server stop to recieve new msg from que, and we can stop rpc server
> easyly and gracefully.

You could define a special 'stop' message which the server interprets as
a request to shut down. How you propagate that request to the
ExecutorService and beyond will depend on the specifics of your


More information about the rabbitmq-discuss mailing list