[rabbitmq-discuss] AMQP Keep-alives?

Francesco Mazzoli francesco at rabbitmq.com
Fri Jul 27 08:36:32 BST 2012


Hi Dion,
At Thu, 26 Jul 2012 17:59:16 -0500,
Dion Rowney wrote:
> Is there a similar "keep-alive" or "heartbeat" option available for the 
> vcd cells and vCO or maybe a RabbitMQ server setting to use keep-alive 
> packets?

You can use AMQP heartbeats.  The client can specify the requested heartbeat
delay in the `tune-ok' frame:
http://www.rabbitmq.com/amqp-0-9-1-reference.html#connection.tune-ok .

In most client this will be a parameter when creating a connection.  For example
in the java client you can use the `setRequestedHeartbeat' method in
`ConnectionFactory':
http://www.rabbitmq.com/releases/rabbitmq-java-client/v2.8.4/rabbitmq-java-client-javadoc-2.8.4/com/rabbitmq/client/ConnectionFactory.html#setRequestedHeartbeat(int)

--
Francesco * Often in error, never in doubt


More information about the rabbitmq-discuss mailing list