org.quartz.core.QuartzSchedulerResources.getInstanceId()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(106)

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

QuartzSchedulerResources.getInstanceId介绍

[英]Get the instance Id for the QuartzScheduler.
[中]获取QuartzScheduler的实例Id。

代码示例

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Returns the instance Id of the <code>QuartzScheduler</code>.
 * </p>
 */
public String getSchedulerInstanceId() {
  return resources.getInstanceId();
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Returns the instance Id of the <code>QuartzScheduler</code>.
 * </p>
 */
public String getSchedulerInstanceId() {
  return resources.getInstanceId();
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Returns the instance Id of the <code>QuartzScheduler</code>.
 * </p>
 */
public String getSchedulerInstanceId() {
  return resources.getInstanceId();
}

代码示例来源:origin: quartz/quartz-all

/**
 * <p>
 * Returns the instance Id of the <code>QuartzScheduler</code>.
 * </p>
 */
public String getSchedulerInstanceId() {
  return resources.getInstanceId();
}

代码示例来源:origin: org.terracotta.modules/tim-quartz-1.5.1

if(schedulers.containsKey(qsRsrcs.getInstanceId())) {
  recover(qsRsrcs.getInstanceId(), schedulers.remove(qsRsrcs.getInstanceId()));
schedulers.put(qsRsrcs.getInstanceId(), lock);
schedulers.notify();
ManagerUtil.monitorEnter(lock, Manager.LOCK_TYPE_WRITE);

代码示例来源:origin: quartz/quartz-all

protected Scheduler instantiate(QuartzSchedulerResources rsrcs, QuartzScheduler qs) {
  SchedulingContext schedCtxt = new SchedulingContext();
  schedCtxt.setInstanceId(rsrcs.getInstanceId());
  
  Scheduler scheduler = new StdScheduler(qs, schedCtxt);
  return scheduler;
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

protected Scheduler instantiate(QuartzSchedulerResources rsrcs, QuartzScheduler qs) {
  SchedulingContext schedCtxt = new SchedulingContext();
  schedCtxt.setInstanceId(rsrcs.getInstanceId());
  
  Scheduler scheduler = new StdScheduler(qs, schedCtxt);
  return scheduler;
}

代码示例来源:origin: quartz/quartz-all

schedCtxt.setInstanceId(rsrcs.getInstanceId());

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

schedCtxt.setInstanceId(rsrcs.getInstanceId());

相关文章

微信公众号

最新文章

更多

QuartzSchedulerResources类方法