DecryptDeviceConfig.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package com.ruoyi.device.config;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.context.annotation.Configuration;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. /**
  7. * 解密设备调度配置
  8. *
  9. * @author lwm
  10. */
  11. @Configuration
  12. @ConfigurationProperties(prefix = "decrypt.device.config")
  13. public class DecryptDeviceConfig
  14. {
  15. /** 最大失败重试次数 */
  16. private Integer defaultFailTimes = 3;
  17. /** 每次发送密文数据条数 */
  18. private Integer defaultSendSize = 20;
  19. /** 解密超时时间(毫秒) */
  20. private Integer timeout = 120000;
  21. /** 解密设备列表 */
  22. private List<DecryptDevice> decryptDeviceList = new ArrayList<>();
  23. /** 是否走外部解密 */
  24. private Boolean outDecrypt = false;
  25. /** 外部解密接口地址 */
  26. private String outDecryptUrl;
  27. public Integer getDefaultFailTimes()
  28. {
  29. return defaultFailTimes;
  30. }
  31. public void setDefaultFailTimes(Integer defaultFailTimes)
  32. {
  33. this.defaultFailTimes = defaultFailTimes;
  34. }
  35. public Integer getDefaultSendSize()
  36. {
  37. return defaultSendSize;
  38. }
  39. public void setDefaultSendSize(Integer defaultSendSize)
  40. {
  41. this.defaultSendSize = defaultSendSize;
  42. }
  43. public Integer getTimeout()
  44. {
  45. return timeout;
  46. }
  47. public void setTimeout(Integer timeout)
  48. {
  49. this.timeout = timeout;
  50. }
  51. public List<DecryptDevice> getDecryptDeviceList()
  52. {
  53. return decryptDeviceList;
  54. }
  55. public void setDecryptDeviceList(List<DecryptDevice> decryptDeviceList)
  56. {
  57. this.decryptDeviceList = decryptDeviceList;
  58. }
  59. public Boolean getOutDecrypt()
  60. {
  61. return outDecrypt;
  62. }
  63. public void setOutDecrypt(Boolean outDecrypt)
  64. {
  65. this.outDecrypt = outDecrypt;
  66. }
  67. public String getOutDecryptUrl()
  68. {
  69. return outDecryptUrl;
  70. }
  71. public void setOutDecryptUrl(String outDecryptUrl)
  72. {
  73. this.outDecryptUrl = outDecryptUrl;
  74. }
  75. }