timeout
Purpose
Sets the amount of time, in milliseconds, an RPC message will wait before giving up.Examples
rabbitMessagePublisher.send { routingKey = "example.queue" timeout = 20 * 60 * 1000 // 20 seconds body = "message" }
The native RabbitMQ Grails plugin provides easily consumable messaging functionality.
(Quick Reference)
timeoutPurposeSets the amount of time, in milliseconds, an RPC message will wait before giving up.ExamplesrabbitMessagePublisher.send { routingKey = "example.queue" timeout = 20 * 60 * 1000 // 20 seconds body = "message" } DescriptionThe timeout is important when sending RPC messages. A server may fail and not reply to the message, and the client must not wait until eternity for the message to come back. The default timeout, if not specified, is 5 seconds. If the client does wish to wait indefinitely, setting this value to 0 will cause the RPC call to wait until a reply is received. |