public class SimpleConnectionFactory extends ConnectionFactory
PooledConnectionFactory
or ManagedConnectionFactory
should rather be used.Constructor and Description |
---|
SimpleConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Fetches a connection from the factory.
|
int |
getConnectionCount() |
String |
getConnectionUrl() |
String |
getPassword() |
String |
getUserName() |
void |
releaseConnection(Connection conn)
Destroys a connection.
|
void |
start(ConnectionFactoryConfiguration config,
ClassLoader classLoader)
Starts the connection factory.
|
void |
stop()
Closes the connection factory, including all allocated connections etc.
|
String |
toString() |
getConnectionFactory, getConnectionFactory
public void start(ConnectionFactoryConfiguration config, ClassLoader classLoader) throws org.infinispan.persistence.spi.PersistenceException
ConnectionFactory
start
in class ConnectionFactory
org.infinispan.persistence.spi.PersistenceException
public void stop()
ConnectionFactory
stop
in class ConnectionFactory
public Connection getConnection() throws org.infinispan.persistence.spi.PersistenceException
ConnectionFactory
getConnection
in class ConnectionFactory
org.infinispan.persistence.spi.PersistenceException
public void releaseConnection(Connection conn)
ConnectionFactory
releaseConnection
in class ConnectionFactory
public String getConnectionUrl()
public String getUserName()
public String getPassword()
public int getConnectionCount()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.