RabbitMQ connection timeout configuration

spring:
  rabbitmq:
    host: localhost
    port: 5672
    username: guest
    password: guest
    vhost: /
    template:
      receive-timeout: 30000
      reply-timeout: 30000
      retry:
        enabled: false
    listener:
      direct:
        retry:
          enabled: false
      default-requeue-rejected: true
      retry:
        enabled: false

 



Parameter Explanation
  receive-timeout: 30,000 consumer receives the response time of the
  reply-timeout: 30000 transmitting side waits to receive the consumer side return msg given time corresponds to the synchronization message, the transmission time of consumption and successful.

Guess you like

Origin www.cnblogs.com/bolddream/p/11445563.html