1 22 package org.jboss.util.threadpool; 23 24 30 public interface ThreadPool 31 { 32 34 36 41 public void stop(boolean immediate); 42 43 48 public void waitForTasks() throws InterruptedException ; 49 50 56 public void waitForTasks(long maxWaitTime) throws InterruptedException ; 57 58 63 public void runTaskWrapper(TaskWrapper wrapper); 64 65 71 public void runTask(Task task); 72 73 79 public void run(Runnable runnable); 80 81 87 public void run(Runnable runnable, long startTimeout, long completeTimeout); 88 } 89 | Popular Tags |