1 16 package org.apache.cocoon.components.thread; 17 18 25 public interface ThreadPool 26 { 27 29 30 String POLICY_ABORT = "ABORT"; 31 32 33 String POLICY_DISCARD = "DISCARD"; 34 35 36 String POLICY_DISCARD_OLDEST = "DISCARDOLDEST"; 37 38 39 String POLICY_RUN = "RUN"; 40 41 42 String POLICY_WAIT = "WAIT"; 43 44 45 String ROLE = ThreadPool.class.getName( ); 46 47 49 54 String getBlockPolicy( ); 55 56 62 long getKeepAliveTime( ); 63 64 69 int getMaximumPoolSize( ); 70 71 76 int getMaximumQueueSize( ); 77 78 83 int getMinimumPoolSize( ); 84 85 90 String getName( ); 91 92 97 int getPoolSize( ); 98 99 104 int getPriority( ); 105 106 112 int getQueueSize( ); 113 114 119 boolean isQueued( ); 120 121 128 boolean isTerminatedAfterShutdown( ); 129 130 137 void execute( Runnable command ) 138 throws InterruptedException ; 139 140 144 void shutdown( ); 145 } 146 | Popular Tags |