Package org.smallmind.phalanx.worker
Class WorkManager<W extends Worker<T>,T>
- java.lang.Object
-
- org.smallmind.phalanx.worker.WorkManager<W,T>
-
- Direct Known Subclasses:
JmsResponseTransport,RabbitMQResponseTransport
public class WorkManager<W extends Worker<T>,T> extends Object
-
-
Constructor Summary
Constructors Constructor Description WorkManager(Class<W> workerClass, int concurrencyLimit)WorkManager(Class<W> workerClass, int concurrencyLimit, WorkQueue<T> workQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(T work)intgetConcurrencyLimit()voidshutDown()voidstartUp(WorkerFactory<W,T> workerFactory)
-
-
-
Method Detail
-
getConcurrencyLimit
public int getConcurrencyLimit()
-
startUp
public void startUp(WorkerFactory<W,T> workerFactory) throws InterruptedException
- Throws:
InterruptedException
-
shutDown
public void shutDown() throws InterruptedException- Throws:
InterruptedException
-
-