1 22 23 package org.jboss.aspects.asynchronous; 24 25 29 30 public interface ThreadManager 31 { 32 33 48 49 public abstract void setWaitWhenPoolSizeIsFull(boolean value); 50 51 54 55 public abstract boolean getWaitWhenPoolSizeIsFull(); 56 57 60 61 public abstract void setMaximumPoolSize(int maximumPoolSize); 62 63 66 67 public abstract int getMaximumPoolSize(); 68 69 72 73 public abstract void setMinimumPoolSize(int minimumPoolSize); 74 75 78 79 public abstract int getMinimumPoolSize(); 80 81 88 89 public abstract void setKeepAliveTime(long time); 90 91 98 99 public abstract long getKeepAliveTime(); 100 101 104 105 public abstract long getPoolSize(); 106 107 114 115 public abstract ThreadManagerResponse waitForResponse(AsynchronousTask input); 116 117 122 123 public abstract ThreadManagerResponse[] waitForResponses(AsynchronousTask input[]); 124 125 132 133 public abstract AsynchronousTask process(ThreadManagerRequest ppmRequest); 134 135 136 public abstract boolean isPooling(); 137 138 public abstract void setPooling(boolean isPooling); 139 140 } 141 | Popular Tags |