1 22 package org.jboss.resource.connectionmanager; 23 24 import javax.resource.ResourceException ; 25 import javax.resource.spi.ConnectionRequestInfo ; 26 import javax.resource.spi.ManagedConnectionFactory ; 27 import javax.security.auth.Subject ; 28 import javax.transaction.Transaction ; 29 30 36 public interface ManagedConnectionPool 37 { 38 43 ManagedConnectionFactory getManagedConnectionFactory(); 44 45 50 void setConnectionListenerFactory(ConnectionListenerFactory clf); 51 52 61 ConnectionListener getConnection(Transaction trackByTransaction, Subject subject, ConnectionRequestInfo cri) 62 throws ResourceException ; 63 64 71 void returnConnection(ConnectionListener cl, boolean kill) 72 throws ResourceException ; 73 74 77 int getConnectionCount (); 78 79 82 int getInUseConnectionCount(); 83 84 87 int getConnectionCreatedCount(); 88 89 92 int getConnectionDestroyedCount(); 93 94 97 void shutdown(); 98 99 102 long getAvailableConnectionCount(); 103 104 107 int getMaxConnectionsInUseCount(); 108 109 112 void flush(); 113 114 } 115 | Popular Tags |