SkyQuartzEnum.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright (c) 2021-2025, LXQ All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: LXQ (609827073@qq.com)
  16. */
  17. package com.kxs.daemon.quartz.constants;
  18. import lombok.AllArgsConstructor;
  19. import lombok.Getter;
  20. /**
  21. * @author LXQ
  22. *
  23. * <p>
  24. * 定时任务枚举
  25. */
  26. @Getter
  27. @AllArgsConstructor
  28. public enum SkyQuartzEnum {
  29. /**
  30. * 错失执行策略默认
  31. */
  32. MISFIRE_DEFAULT("0", "默认"),
  33. /**
  34. * 错失执行策略-立即执行错失任务
  35. */
  36. MISFIRE_IGNORE_MISFIRES("1", "立即执行错失任务"),
  37. /**
  38. * 错失执行策略-触发一次执行周期执行
  39. */
  40. MISFIRE_FIRE_AND_PROCEED("2", "触发一次执行周期执行"),
  41. /**
  42. * 错失执行策略-不触发执行周期执行
  43. */
  44. MISFIRE_DO_NOTHING("3", "不触发周期执行"),
  45. /**
  46. * 任务详细信息的key
  47. */
  48. SCHEDULE_JOB_KEY("scheduleJob", "获取任务详细信息的key"),
  49. /**
  50. * JOB执行状态:0执行成功
  51. */
  52. JOB_LOG_STATUS_SUCCESS("0", "执行成功"),
  53. /**
  54. * JOB执行状态:1执行失败
  55. */
  56. JOB_LOG_STATUS_FAIL("1", "执行失败"),
  57. /**
  58. * JOB状态:1已发布
  59. */
  60. JOB_STATUS_RELEASE("1", "已发布"),
  61. /**
  62. * JOB状态:2运行中
  63. */
  64. JOB_STATUS_RUNNING("2", "运行中"),
  65. /**
  66. * JOB状态:3暂停
  67. */
  68. JOB_STATUS_NOT_RUNNING("3", "暂停"),
  69. /**
  70. * JOB状态:4删除
  71. */
  72. JOB_STATUS_DEL("4", "删除");
  73. /**
  74. * 类型
  75. */
  76. private final String type;
  77. /**
  78. * 描述
  79. */
  80. private final String description;
  81. }