1 16 17 package org.apache.commons.pool; 18 19 46 public interface ObjectPool { 47 60 Object borrowObject() throws Exception ; 61 62 71 void returnObject(Object obj) throws Exception ; 72 73 88 void invalidateObject(Object obj) throws Exception ; 89 90 96 void addObject() throws Exception ; 97 98 108 int getNumIdle() throws UnsupportedOperationException ; 109 110 118 int getNumActive() throws UnsupportedOperationException ; 119 120 126 void clear() throws Exception , UnsupportedOperationException ; 127 128 131 void close() throws Exception ; 132 133 141 void setFactory(PoolableObjectFactory factory) throws IllegalStateException , UnsupportedOperationException ; 142 } 143 | Popular Tags |