本文整理了Java中org.springframework.scheduling.support.CronTrigger.getExpression()
方法的一些代码示例,展示了CronTrigger.getExpression()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CronTrigger.getExpression()
方法的具体详情如下:
包路径:org.springframework.scheduling.support.CronTrigger
类名称:CronTrigger
方法名:getExpression
[英]Return the cron pattern that this trigger has been built with.
[中]返回构建此触发器时使用的cron模式。
代码示例来源:origin: spring-projects/spring-framework
/**
* Create a new {@code CronTask}.
* @param runnable the underlying task to execute
* @param cronTrigger the cron trigger defining when the task should be executed
*/
public CronTask(Runnable runnable, CronTrigger cronTrigger) {
super(runnable, cronTrigger);
this.expression = cronTrigger.getExpression();
}
代码示例来源:origin: org.springframework/spring-context
/**
* Create a new {@code CronTask}.
* @param runnable the underlying task to execute
* @param cronTrigger the cron trigger defining when the task should be executed
*/
public CronTask(Runnable runnable, CronTrigger cronTrigger) {
super(runnable, cronTrigger);
this.expression = cronTrigger.getExpression();
}
代码示例来源:origin: org.springframework.boot/spring-boot-actuator
private CronTaskDescription(TriggerTask task, CronTrigger trigger) {
super(TaskType.CRON, task.getRunnable());
this.expression = trigger.getExpression();
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Create a new {@code CronTask}.
* @param runnable the underlying task to execute
* @param cronTrigger the cron trigger defining when the task should be executed
*/
public CronTask(Runnable runnable, CronTrigger cronTrigger) {
super(runnable, cronTrigger);
this.expression = cronTrigger.getExpression();
}
代码示例来源:origin: stackoverflow.com
return trigger.getExpression();
内容来源于网络,如有侵权,请联系作者删除!