org.mule.routing
Class EventProcessingThread
java.lang.Object
java.lang.Thread
org.mule.routing.EventProcessingThread
- All Implemented Interfaces:
- Runnable
public abstract class EventProcessingThread
- extends Thread
A thread that detects and processes events.
Method Summary |
protected boolean |
delay(long timeToDelay)
|
protected abstract void |
doRun()
Detect and process events |
void |
processNow()
|
void |
run()
|
void |
stopProcessing()
Stops the monitoring of the expired groups. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, 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 |
logger
protected final Log logger
stopRequested
protected volatile boolean stopRequested
delayTime
protected long delayTime
lock
protected Object lock
EventProcessingThread
public EventProcessingThread(String name,
long delayTime)
processNow
public void processNow()
stopProcessing
public void stopProcessing()
- Stops the monitoring of the expired groups.
delay
protected boolean delay(long timeToDelay)
run
public final void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
doRun
protected abstract void doRun()
- Detect and process events
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.