本文整理了Java中org.quartz.Trigger.compareTo()
方法的一些代码示例,展示了Trigger.compareTo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Trigger.compareTo()
方法的具体详情如下:
包路径:org.quartz.Trigger
类名称:Trigger
方法名:compareTo
[英]Compare the next fire time of this Trigger
to that of another.
[中]将这个Trigger
的下次开火时间与另一个Trigger
的下次开火时间进行比较。
代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz
public int compare(Object obj1, Object obj2) {
TriggerWrapper trig1 = (TriggerWrapper) obj1;
TriggerWrapper trig2 = (TriggerWrapper) obj2;
int comp = trig1.trigger.compareTo(trig2.trigger);
if (comp != 0) {
return comp;
}
comp = trig2.trigger.getPriority() - trig1.trigger.getPriority();
if (comp != 0) {
return comp;
}
return trig1.trigger.getFullName().compareTo(trig2.trigger.getFullName());
}
代码示例来源:origin: quartz/quartz-all
public int compare(Object obj1, Object obj2) {
TriggerWrapper trig1 = (TriggerWrapper) obj1;
TriggerWrapper trig2 = (TriggerWrapper) obj2;
int comp = trig1.trigger.compareTo(trig2.trigger);
if (comp != 0) {
return comp;
}
comp = trig2.trigger.getPriority() - trig1.trigger.getPriority();
if (comp != 0) {
return comp;
}
return trig1.trigger.getFullName().compareTo(trig2.trigger.getFullName());
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-scheduler-api
if (getTrigger(object, context).compareTo(trigger) != 0) {
LOGGER.debug("Reschedule Job: [{}]", object.getStringValue("jobName"));
代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler
if (getTrigger(object, context).compareTo(trigger) != 0) {
LOG.debug("Reschedule Job : " + object.getStringValue("jobName"));
内容来源于网络,如有侵权,请联系作者删除!