1 13 14 package org.dbunit.util.concurrent; 15 16 23 24 public class DefaultChannelCapacity { 25 26 27 public static final int INITIAL_DEFAULT_CAPACITY = 1024; 28 29 30 private static final SynchronizedInt defaultCapacity_ = 31 new SynchronizedInt(INITIAL_DEFAULT_CAPACITY); 32 33 39 public static void set(int capacity) { 40 if (capacity <= 0) throw new IllegalArgumentException (); 41 defaultCapacity_.set(capacity); 42 } 43 44 51 public static int get() { 52 return defaultCapacity_.get(); 53 } 54 } 55 | Popular Tags |