站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.0.4 API 英文版文档

SchedulerThread (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档


org.jbpm.scheduler.impl
Class SchedulerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jbpm.scheduler.impl.SchedulerThread
All Implemented Interfaces:
java.lang.Runnable

public class SchedulerThread
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SchedulerThread()
           
 
Method Summary
 void addListener(SchedulerListener listener)
           
 long executeTimers()
          executes due timers and calculates the time before the next timer is due.
 void removeListener(SchedulerListener listener)
           
 void run()
           
 void setInterval(long interval)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchedulerThread

public SchedulerThread()
Method Detail

run

public void run()

executeTimers

public long executeTimers()
executes due timers and calculates the time before the next timer is due.

Returns:
the number of milliseconds till the next job is due or -1 if no timer is schedulerd in the future.

addListener

public void addListener(SchedulerListener listener)

removeListener

public void removeListener(SchedulerListener listener)

setInterval

public void setInterval(long interval)


Version : jbpm-3.0.4