zoukankan      html  css  js  c++  java
  • spring-boot-autoconfigure-1.5.4.RELEASE rabbitmq配置

    #https://blog.csdn.net/en_joker/article/details/80103519
    #https://docs.spring.io/spring-amqp/docs/1.5.4.RELEASE/reference/html/_reference.html#containerAttributes
    #https://www.cnblogs.com/qts-hope/p/11242559.html
    spring.rabbitmq:
      #RabbitMQ的主机地址 checked
      host: ${rabbitmq.server.hostname:rabbitmq.kyeapi.com}
      #RabbitMQ的端口号 checked
      port: ${rabbitmq.server.port:5672}
      #登录到RabbitMQ的用户名 checked
      username: admin
      #登录到RabbitMQ的密码 checked
      password: admin
      #ssl:
        #启用SSL支持 checked
        #enabled: false
        #保存SSL证书的地址 checked
        #key-store:
        #访问SSL证书的地址使用的密码 checked
        #key-store-password:
        #SSL的可信地址 checked
        #trustStore:
        #访问SSL的可信地址的密码 checked
        #trust-store-password:
        #SSL算法,默认使用Rabbit的客户端算法库 checked
      #algorithm:
      #连接到RabbitMQ的虚拟主机 checked
      #virtualHost:
      #客户端连接的地址,有多个的时候使用逗号分隔,该地址可以是IP与Port的结合 (优先取addresses,然后再取host) checked
      #addresses:
      #Requested heartbeat timeout, in seconds; zero for none.秒 请求心跳超时时间,单位为秒 checked
      requested-heartbeat: 60
      #Enable publisher confirms. 开启Publisher Confirm机制 是否启用【发布确认】 checked
      publisher-confirms: false
      # Enable publisher returns. 	开启publisher Return机制 是否启用【发布返回】 checked
      publisher-returns: false
      #毫秒,Connection timeout, in milliseconds; zero for infinite.连接超时参数单位为毫秒:设置为“0”代表无穷大 checked
      connnection-timeout: 60000
      #默认创建一个AmqpAdmin的Bean checked
      dynamic: true
      cache:
        channel:
          #Number of channels to retain in the cache. When "check-timeout" > 0, max * channels per connection.缓存中保持的Channel数量 checked
          size: 25
          #Number of milliseconds to wait to obtain a channel if the cache size has * been reached. If 0, always create a new channel.当缓存已满时,获取Channel的等待时间,单位为毫秒 checked
          checkout-timeout: 0
        connection:
          #Connection factory cache mode.连接缓存的模式 checked
          mode: CHANNEL
          #Number of connections to cache. Only applies when mode is CONNECTION.缓存的连接数 checked
          size: 1
      template:
        #如果为空,使用publisherReturns的值 Enable mandatory messages. If a mandatory message cannot be routed to a queue * by the server, it will return an unroutable message with a Return method. 启用强制信息 checked
        #mandatory:
        #Timeout for receive() operations. receive()方法的超时时间 checked
        receive-timeout: 0
        # Timeout for sendAndReceive() operations. sendAndReceive()方法的超时时间 checked
        reply-timeout: 5000
        retry:
          #Whether or not publishing retries are enabled. 设置为true的时候RabbitTemplate能够实现重试 checked
          enabled: false
          #Maximum number of attempts to publish or deliver a message. 尝试发布消息的最大数量 checked
          max-attempts: 3
          #Interval between the first and second attempt to publish or deliver a message. 第一次与第二次发布消息的时间间隔 checked
          initial-interval: 1000
          #A multiplier to apply to the previous retry interval. 上一次尝试时间间隔的乘数 checked
          multiplier: 1.0
          #Maximum interval between attempts. 尝试发布消息的最大时间间隔 checked
          max-interval: 10000
      listener:
        simple:
          #Start the container automatically on startup. 启动时自动启动容器 checked
          autoStartup: true
          #Acknowledge mode of container.无默认值 容器的acknowledge模式 自动提交还是手动提交 checked
          #acknowledgeMode:
          #Minimum number of consumers. 无 消费者的最小数量 checked
          #concurrency:
          #Maximum number of consumers. 无 消费者的最大数量 checked
          max-concurrency: 10
          #Number of messages to be handled in a single request. It should be greater than * or equal to the transaction size (if used). 无 在单个请求中处理的消息个数,他应该大于等于事务数量 checked
          #prefetch:
          #Number of messages to be processed in a transaction. For best results it should * be less than or equal to the prefetch count. 指定一个事务处理的消息数量,最好是小于等于prefetch的数量. 无
          #transaction-size:
          #Whether rejected deliveries are requeued by default; default true. 投递失败时是否重新排队 checked
          default-requeue-rejected: true
          #How often idle container events should be published in milliseconds. 无默认值 多长时间发布空闲容器时间,单位毫秒
          #idleEventInterval:
          retry:
            #Whether or not retries are stateless or stateful.  不论重试是有状态的还是无状态的 checked
            stateless: true
        #spring-boot-autoconfigure-1.5.4.RELEASE 没有找到 checked
        retry:
          # 设置为true的时候RabbitTemplate能够实现重试 checked
          enabled: false
          #第一次与第二次发布消息的时间间隔 checked
          initial-interval: 1000
          #尝试投递消息的最大数量 checked
          max-attempts: 3
          #两次尝试的最大时间间隔 checked
          max-interval: 10000
          #上一次尝试时间间隔的乘数 checked
          multiplier: 1.0
          #是否无状态的 checked
          stateless: true
          #在一个事务中处理的消息数量。为了获得最佳效果,该值应设置为小于等于每个请求中处理的消息个数,即spring.rabbitmq.listener.prefetch的值 checked
          #transaction-size:
    

      

  • 相关阅读:
    Quartus II -----破解
    博客诞生
    OpenMPI 学习笔记(一)并行计算机和分布式计算
    信息安全(1):安全策略
    认证
    SSL/TLS 和Https
    IPSec 网络协议安全
    C# 快速高效率复制对象另一种方式 表达式树
    C语言学习指针和数组2
    C语言学习二维数组
  • 原文地址:https://www.cnblogs.com/alisande/p/11264409.html
Copyright © 2011-2022 走看看