1 16 17 package org.apache.commons.pool; 18 19 27 public abstract class BaseKeyedObjectPool implements KeyedObjectPool { 28 public abstract Object borrowObject(Object key) throws Exception ; 29 public abstract void returnObject(Object key, Object obj) throws Exception ; 30 public abstract void invalidateObject(Object key, Object obj) throws Exception ; 31 32 35 public void addObject(Object key) throws Exception , UnsupportedOperationException { 36 throw new UnsupportedOperationException (); 37 } 38 39 42 public int getNumIdle(Object key) throws UnsupportedOperationException { 43 throw new UnsupportedOperationException (); 44 } 45 46 49 public int getNumActive(Object key) throws UnsupportedOperationException { 50 throw new UnsupportedOperationException (); 51 } 52 53 56 public int getNumIdle() throws UnsupportedOperationException { 57 throw new UnsupportedOperationException (); 58 } 59 60 63 public int getNumActive() throws UnsupportedOperationException { 64 throw new UnsupportedOperationException (); 65 } 66 67 70 public void clear() throws Exception , UnsupportedOperationException { 71 throw new UnsupportedOperationException (); 72 } 73 74 77 public void clear(Object key) 78 throws Exception , UnsupportedOperationException { 79 throw new UnsupportedOperationException (); 80 } 81 82 85 public void close() throws Exception { 86 } 87 88 89 92 public void setFactory(KeyedPoolableObjectFactory factory) 93 throws IllegalStateException , UnsupportedOperationException { 94 throw new UnsupportedOperationException (); 95 } 96 97 } 98 | Popular Tags |