public abstract class ExternalConnectionPool extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POOL |
static String |
READONLY_POOL |
| Constructor and Description |
|---|
ExternalConnectionPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
closePool()
If the external connection pool should be closed this method should be overwritten
|
abstract Connection |
getConnection() |
Connection |
getConnection(String poolName)
This method is intended to be overridden by external connection multi-pools.
|
static ExternalConnectionPool |
getInstance() |
static ExternalConnectionPool |
getInstance(String externalConnectionPoolClassName) |
void |
loadInterceptors(List<PoolInterceptorProvider> interceptors)
If the external connection pool supports interceptors this method should be overwritten
|
public static final String DEFAULT_POOL
public static final String READONLY_POOL
public static final ExternalConnectionPool getInstance(String externalConnectionPoolClassName) throws InstantiationException, IllegalAccessException, ClassNotFoundException
externalConnectionPoolClassName - The full class name of the external connection poolInstantiationExceptionIllegalAccessExceptionClassNotFoundExceptionpublic static final ExternalConnectionPool getInstance()
public void closePool()
public void loadInterceptors(List<PoolInterceptorProvider> interceptors)
interceptors - List of PoolInterceptorProvider comprised of all the interceptors injected with Weldpublic abstract Connection getConnection()
public Connection getConnection(String poolName)
poolName - The name of the external connection pool