1 23 24 37 package com.sun.enterprise.deployment.runtime; 38 39 import com.sun.enterprise.deployment.Descriptor; 40 import com.sun.enterprise.deployment.DescriptorConstants; 41 42 46 public class BeanPoolDescriptor extends Descriptor implements DescriptorConstants { 47 48 private int maxPoolSize = MAX_POOL_SIZE_DEFAULT; 49 private int poolIdleTimeoutInSeconds = POOL_IDLE_TIMEOUT_DEFAULT; 50 private int maxWaitTimeInMillis = MAX_WAIT_TIME_DEFAULT; 51 private int poolResizeQuantity = POOL_RESIZE_QTY_DEFAULT; 52 private int steadyPoolSize = STEADY_POOL_SIZE_DEFAULT; 53 54 55 56 public BeanPoolDescriptor() { 57 } 58 59 62 public int getPoolIdleTimeoutInSeconds() { 63 return poolIdleTimeoutInSeconds; 64 } 65 66 69 public void setPoolIdleTimeoutInSeconds(int poolIdleTimeoutInSeconds) { 70 this.poolIdleTimeoutInSeconds = poolIdleTimeoutInSeconds; 71 } 72 73 76 public int getMaxPoolSize() { 77 return maxPoolSize; 78 } 79 80 83 public void setMaxPoolSize(int maxPoolSize) { 84 this.maxPoolSize = maxPoolSize; 85 } 86 87 90 public int getMaxWaitTimeInMillis() { 91 return maxWaitTimeInMillis; 92 } 93 94 97 public void setMaxWaitTimeInMillis(int maxWaitTimeInMillis) { 98 this.maxWaitTimeInMillis = maxWaitTimeInMillis; 99 } 100 101 104 public int getPoolResizeQuantity() { 105 return poolResizeQuantity; 106 } 107 108 111 public void setPoolResizeQuantity(int poolResizeQuantity) { 112 this.poolResizeQuantity = poolResizeQuantity; 113 } 114 115 118 public int getSteadyPoolSize() { 119 return steadyPoolSize; 120 } 121 122 125 public void setSteadyPoolSize(int steadyPoolSize) { 126 this.steadyPoolSize = steadyPoolSize; 127 } 128 } 129 130 | Popular Tags |