本文整理了Java中javax.ejb.Timer.getHandle()
方法的一些代码示例,展示了Timer.getHandle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timer.getHandle()
方法的具体详情如下:
包路径:javax.ejb.Timer
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!