CustomRabbitMQProperties.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. package com.kmall.admin.config.mq;
  2. /**
  3. * 自定义的rabbitmq属性
  4. * @author lhm
  5. * @version 1.0
  6. * 2021-09-08 17:36
  7. */
  8. import org.springframework.beans.factory.annotation.Value;
  9. import org.springframework.context.annotation.PropertySource;
  10. import org.springframework.stereotype.Component;
  11. /**
  12. * 队列配置
  13. * req_20210826_001
  14. * @author lhm
  15. * @version 1.0
  16. * 2021-08-26 17:08
  17. */
  18. @PropertySource(value = {"classpath:conf/mq.properties"})
  19. @Component
  20. public class CustomRabbitMQProperties {
  21. /**
  22. * 主要配置
  23. */
  24. @Value("${mq.username}")
  25. private String username;
  26. @Value("${mq.password}")
  27. private String password;
  28. @Value("${mq.host}")
  29. private String host;
  30. @Value("${mq.port}")
  31. private int port;
  32. @Value("${mq.virtual.host}")
  33. private String virtualHost;
  34. @Value("${mq.channel.cache.size}")
  35. private int channelCacheSize;
  36. /**
  37. * 是否开启
  38. */
  39. @Value("${mq.open}")
  40. private Boolean open;
  41. /**
  42. * 队列配置
  43. */
  44. @Value("${k.normal.oms.order.to.handle.customs.clearance}")
  45. private String k_normal_oms_order_to_handle_customs_clearance;
  46. @Value("${q.normal.oms.order.to.handle.customs.clearance}")
  47. private String q_normal_oms_order_to_handle_customs_clearance;
  48. @Value("${e.normal.oms.order.to.handle.customs.clearance}")
  49. private String e_normal_oms_order_to_handle_customs_clearance;
  50. public String getUsername() {
  51. return username;
  52. }
  53. public void setUsername(String username) {
  54. this.username = username;
  55. }
  56. public String getPassword() {
  57. return password;
  58. }
  59. public void setPassword(String password) {
  60. this.password = password;
  61. }
  62. public String getHost() {
  63. return host;
  64. }
  65. public void setHost(String host) {
  66. this.host = host;
  67. }
  68. public int getPort() {
  69. return port;
  70. }
  71. public void setPort(int port) {
  72. this.port = port;
  73. }
  74. public String getVirtualHost() {
  75. return virtualHost;
  76. }
  77. public void setVirtualHost(String virtualHost) {
  78. this.virtualHost = virtualHost;
  79. }
  80. public int getChannelCacheSize() {
  81. return channelCacheSize;
  82. }
  83. public void setChannelCacheSize(int channelCacheSize) {
  84. this.channelCacheSize = channelCacheSize;
  85. }
  86. public Boolean getOpen() {
  87. return open;
  88. }
  89. public void setOpen(Boolean open) {
  90. this.open = open;
  91. }
  92. public String getK_normal_oms_order_to_handle_customs_clearance() {
  93. return k_normal_oms_order_to_handle_customs_clearance;
  94. }
  95. public void setK_normal_oms_order_to_handle_customs_clearance(String k_normal_oms_order_to_handle_customs_clearance) {
  96. this.k_normal_oms_order_to_handle_customs_clearance = k_normal_oms_order_to_handle_customs_clearance;
  97. }
  98. public String getQ_normal_oms_order_to_handle_customs_clearance() {
  99. return q_normal_oms_order_to_handle_customs_clearance;
  100. }
  101. public void setQ_normal_oms_order_to_handle_customs_clearance(String q_normal_oms_order_to_handle_customs_clearance) {
  102. this.q_normal_oms_order_to_handle_customs_clearance = q_normal_oms_order_to_handle_customs_clearance;
  103. }
  104. public String getE_normal_oms_order_to_handle_customs_clearance() {
  105. return e_normal_oms_order_to_handle_customs_clearance;
  106. }
  107. public void setE_normal_oms_order_to_handle_customs_clearance(String e_normal_oms_order_to_handle_customs_clearance) {
  108. this.e_normal_oms_order_to_handle_customs_clearance = e_normal_oms_order_to_handle_customs_clearance;
  109. }
  110. }