org.springframework.scheduling.support.CronTrigger.getExpression()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中org.springframework.scheduling.support.CronTrigger.getExpression()方法的一些代码示例,展示了CronTrigger.getExpression()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CronTrigger.getExpression()方法的具体详情如下:
包路径:org.springframework.scheduling.support.CronTrigger
类名称:CronTrigger
方法名:getExpression

CronTrigger.getExpression介绍

[英]Return the cron pattern that this trigger has been built with.
[中]返回构建此触发器时使用的cron模式。

代码示例

代码示例来源:origin: spring-projects/spring-framework

  1. /**
  2. * Create a new {@code CronTask}.
  3. * @param runnable the underlying task to execute
  4. * @param cronTrigger the cron trigger defining when the task should be executed
  5. */
  6. public CronTask(Runnable runnable, CronTrigger cronTrigger) {
  7. super(runnable, cronTrigger);
  8. this.expression = cronTrigger.getExpression();
  9. }

代码示例来源:origin: org.springframework/spring-context

  1. /**
  2. * Create a new {@code CronTask}.
  3. * @param runnable the underlying task to execute
  4. * @param cronTrigger the cron trigger defining when the task should be executed
  5. */
  6. public CronTask(Runnable runnable, CronTrigger cronTrigger) {
  7. super(runnable, cronTrigger);
  8. this.expression = cronTrigger.getExpression();
  9. }

代码示例来源:origin: org.springframework.boot/spring-boot-actuator

  1. private CronTaskDescription(TriggerTask task, CronTrigger trigger) {
  2. super(TaskType.CRON, task.getRunnable());
  3. this.expression = trigger.getExpression();
  4. }

代码示例来源:origin: apache/servicemix-bundles

  1. /**
  2. * Create a new {@code CronTask}.
  3. * @param runnable the underlying task to execute
  4. * @param cronTrigger the cron trigger defining when the task should be executed
  5. */
  6. public CronTask(Runnable runnable, CronTrigger cronTrigger) {
  7. super(runnable, cronTrigger);
  8. this.expression = cronTrigger.getExpression();
  9. }

代码示例来源:origin: stackoverflow.com

  1. return trigger.getExpression();

相关文章