SmartHeartBeatConfig.java 650 B

123456789101112131415161718192021222324252627282930313233
  1. package net.lab1024.smartadmin.config;
  2. import lombok.Data;
  3. import org.springframework.beans.factory.annotation.Value;
  4. import org.springframework.context.annotation.Configuration;
  5. /**
  6. *
  7. * [ ]
  8. *
  9. * @version 1.0
  10. * @since JDK1.8
  11. * @author yandanyang
  12. * @company 1024lab.net
  13. * @copyright (c) 2019 1024lab.netInc. All rights reserved.
  14. * @date
  15. */
  16. @Data
  17. @Configuration
  18. public class SmartHeartBeatConfig {
  19. /**
  20. * 延迟执行时间
  21. */
  22. @Value("${heart-beat.delayHandlerTime}")
  23. private Long delayHandlerTime;
  24. /**
  25. * 间隔执行时间
  26. */
  27. @Value("${heart-beat.intervalTime}")
  28. private Long intervalTime;
  29. }