1 4 5 package org.smartlib.pool.core; 6 7 import java.sql.Connection ; 8 import java.util.*; 9 10 14 15 public interface Pool { 16 17 18 33 public Connection getConnection() 34 throws ConnectionPoolException; 35 36 37 54 55 public Connection getConnection(String owner) 56 throws ConnectionPoolException; 57 58 62 public int getCurrentPoolSize(); 63 64 67 public void returnConnection(Connection conn); 68 69 72 public Vector getConnectionsInUse(); 73 74 77 public Vector getConnectionLeakListeners(); 78 79 82 public int getNoOfFreeConnections(); 83 84 93 public void addConnectionLeakListener(ConnectionLeakListener cle ) 94 throws ConnectionPoolException; 95 96 104 public void removeConnectionLeakListener(ConnectionLeakListener cle) 105 throws ConnectionPoolException; 106 107 110 public void releaseConnections() ; 111 112 115 public void shutDown(); 116 117 } 118 | Popular Tags |