1 14 15 package org.quickserver.util.xmlreader; 16 17 22 public class PoolConfig implements java.io.Serializable { 23 private int maxActive = -1; 24 private int maxIdle = 50; 25 private int initSize = 25; 26 27 32 public int getInitSize() { 33 if(maxIdle!=-1 && initSize>maxIdle) 34 return maxIdle; 35 else 36 return initSize; 37 } 38 45 public void setInitSize(int initSize) { 46 this.initSize = initSize; 47 } 48 49 53 public int getMaxActive() { 54 return maxActive; 55 } 56 62 public void setMaxActive(int maxActive) { 63 this.maxActive = maxActive; 64 } 65 66 70 public int getMaxIdle() { 71 return maxIdle; 72 } 73 79 public void setMaxIdle(int maxIdle) { 80 this.maxIdle = maxIdle; 81 } 82 } 83 | Popular Tags |