1 16 17 package org.apache.commons.pool; 18 19 56 public interface KeyedObjectPool { 57 71 Object borrowObject(Object key) throws Exception ; 72 73 85 void returnObject(Object key, Object obj) throws Exception ; 86 87 104 void invalidateObject(Object key, Object obj) throws Exception ; 105 106 112 void addObject(Object key) throws Exception ; 113 114 125 int getNumIdle(Object key) throws UnsupportedOperationException ; 126 127 139 int getNumActive(Object key) throws UnsupportedOperationException ; 140 141 150 int getNumIdle() throws UnsupportedOperationException ; 151 152 162 int getNumActive() throws UnsupportedOperationException ; 163 164 171 void clear() throws Exception , UnsupportedOperationException ; 172 173 182 void clear(Object key) throws Exception , UnsupportedOperationException ; 183 184 187 void close() throws Exception ; 188 189 196 void setFactory(KeyedPoolableObjectFactory factory) throws IllegalStateException , UnsupportedOperationException ; 197 } 198 | Popular Tags |