1 37 38 package net.sourceforge.cruisecontrol.util.threadpool; 39 40 50 51 public final class ThreadQueueProperties { 52 private static int maxThreadCount = 1; 53 54 private ThreadQueueProperties() { 55 } 56 57 public static int getMaxThreadCount() { 58 return maxThreadCount; 59 } 60 61 public static void setMaxThreadCount(int threadCount) { 62 if (threadCount < 1) { 63 throw new IllegalArgumentException ("max thread count must be >= 1"); 64 } 65 maxThreadCount = threadCount; 66 } 67 } 68 | Popular Tags |