de.phleisch.app.itsucks.core.impl
Class DispatcherThread

java.lang.Object
  extended by de.phleisch.app.itsucks.core.impl.DispatcherImpl
      extended by de.phleisch.app.itsucks.core.impl.DispatcherThread
All Implemented Interfaces:
Dispatcher, org.springframework.context.ApplicationContextAware

public class DispatcherThread
extends DispatcherImpl

Wrapper around the dispatcher to run the job processing in an new thread. Use the join method to wait for the dispatcher thread to finish.

Author:
olli

Constructor Summary
DispatcherThread()
           
 
Method Summary
 void join()
           
 void processJobs()
          Start processing the jobs in the job list and delegate it to free worker threads.
 
Methods inherited from class de.phleisch.app.itsucks.core.impl.DispatcherImpl
addJob, addJobFilter, addJobFilter, doPauseLoop, getContext, getDispatchDelay, getEventManager, getJobManager, getName, getNextOpenJob, getWorkerPool, isPaused, isRunning, pause, setApplicationContext, setContext, setDispatchDelay, setEventManager, setFilterJobManager, setName, setWorkerPool, stop, unpause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatcherThread

public DispatcherThread()
Method Detail

processJobs

public void processJobs()
Description copied from interface: Dispatcher
Start processing the jobs in the job list and delegate it to free worker threads. Returns when all jobs are done.

Specified by:
processJobs in interface Dispatcher
Overrides:
processJobs in class DispatcherImpl

join

public void join()
          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException


Copyright © 2010. All Rights Reserved.