1 6 7 package org.jfox.pool; 8 9 14 15 16 public interface ObjectPool { 17 22 PoolableObject retrieveObject() throws Exception ; 23 24 29 boolean restoreObject(PoolableObject obj); 30 31 37 boolean removeObject(PoolableObject obj); 38 39 42 void clear(); 43 44 47 ObjectFactory getObjectFactory(); 48 49 54 String getObjectClass(); 55 56 61 int getWorking(); 62 63 68 int getRest(); 69 70 75 int getInitNum(); 76 77 82 int getMaxRest(); 83 84 } 85 | Popular Tags |