1 24 25 package org.objectweb.dream.control.activity.task.thread; 26 27 import org.objectweb.fractal.api.control.IllegalLifeCycleException; 28 29 33 public interface ThreadPoolController 34 { 35 36 41 long DEFAULT_WAIT_TIMEOUT = 2000; 42 43 51 void setCapacity(int i); 52 53 58 int getCapacity(); 59 60 66 void setWaitTimeout(long millis); 67 68 73 long getWaitTimeout(); 74 75 80 int getNbActiveThreads(); 81 82 95 void addThreads(int i) throws ThreadPoolOverflowException, 96 IllegalLifeCycleException; 97 98 109 void removeThreads(int i) throws IllegalLifeCycleException; 110 111 } | Popular Tags |