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

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


org.jbpm.scheduler.impl
Class SchedulerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jbpm.scheduler.impl.SchedulerThread
All Implemented Interfaces:
java.lang.Runnable

public class SchedulerThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SchedulerThread()
           
SchedulerThread(JbpmConfiguration jbpmConfiguration)
           
SchedulerThread(JbpmConfiguration jbpmConfiguration, java.lang.String jbpmContextName)
           
SchedulerThread(java.lang.String jbpmContextName)
           
 
Method Summary
 void addListener(SchedulerListener listener)
           
 long executeTimers()
          executes due timers and calculates the time before the next timer is due.
 void quit()
           
 void removeListener(SchedulerListener listener)
           
 void run()
           
 void setInterval(long interval)
           
 void setMaxResultCount(int maxResultCount)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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()

SchedulerThread

public SchedulerThread(JbpmConfiguration jbpmConfiguration)

SchedulerThread

public SchedulerThread(java.lang.String jbpmContextName)

SchedulerThread

public SchedulerThread(JbpmConfiguration jbpmConfiguration,
                       java.lang.String jbpmContextName)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

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)

setMaxResultCount

public void setMaxResultCount(int maxResultCount)

quit

public void quit()


Version : jbpm-3.1.3