javax.ejb.Timer.getHandle()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(125)

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

Timer.getHandle介绍

[英]Get a serializable handle to the timer. This handle can be used at a later time to re-obtain the timer reference.
[中]获取计时器的可序列化句柄。此句柄可在以后用于重新获取计时器引用。

代码示例

代码示例来源:origin: org.jboss.seam/jboss-seam

public Object call() 
  {
    return timer.getHandle();
  }
});

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.serviceaccess

/**
 * called by framework
 * 
 * @param timerHandle the timers handle
 */
public TimerHandle setTimerHandle(Timer timer) {
  assert this.timerHandle == null : "timer should only be set once!";
  this.timerHandle = timer.getHandle();
  nextStart = timer.getNextTimeout();
  LOG.info("creating timer ==> nextstart: " + nextStart
    + ", handle: "
    + timer.getHandle()
    + ", unique-name: "
    + getUniqueName());
  return timerHandle;
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.serviceaccess

final Job<RUNNABLE> job = getJob(timer.getHandle());
if (job.isStopOnConcurrent()) {
  Job<?> runningJob = getRunningJob();

相关文章