org.jmage.pool
Interface WorkerPool

All Known Implementing Classes:
WorkerPoolImpl

public interface WorkerPool

WorkerPool


Method Summary
 void addWorker(Worker worker)
           
 void freeWorker(Worker worker)
           
 void freeWorkerFor(java.lang.Object object)
           
 java.util.Set getAllWorkers()
           
 int getTimeoutSeconds()
           
 Worker hireWorker()
           
 void removeWorker(Worker worker)
           
 void setTimeoutSeconds(int timeoutSeconds)
           
 

Method Detail

hireWorker

Worker hireWorker()
                  throws WorkerException
Throws:
WorkerException

freeWorker

void freeWorker(Worker worker)
                throws WorkerException
Throws:
WorkerException

freeWorkerFor

void freeWorkerFor(java.lang.Object object)
                   throws WorkerException
Throws:
WorkerException

addWorker

void addWorker(Worker worker)
               throws WorkerException
Throws:
WorkerException

removeWorker

void removeWorker(Worker worker)
                  throws WorkerException
Throws:
WorkerException

getAllWorkers

java.util.Set getAllWorkers()
                            throws WorkerException
Throws:
WorkerException

getTimeoutSeconds

int getTimeoutSeconds()
                      throws WorkerException
Throws:
WorkerException

setTimeoutSeconds

void setTimeoutSeconds(int timeoutSeconds)
                       throws WorkerException
Throws:
WorkerException


Copyright © 2004-2008 Sourceforge. All Rights Reserved.