public class PooledAliasConnectionProvider extends AliasConnectionProvider
AliasConnectionProvider
Modifier and Type | Field and Description |
---|---|
static String |
MAX_ACTIVE
The MAX_ACTIVE property.
|
static String |
MAX_IDLE
The MAX_IDLE property.
|
static String |
MAX_WAIT
The MAX_WAIT property.
|
static String |
MIN_EVICTABLE_IDLE_TIME_MILLIS
The MIN_EVICTABLE_IDLE_TIME_MILLIS property.
|
static String |
MIN_IDLE
The MIN_IDLE property.
|
static String |
NUM_TESTS_PER_EVICTION_RUN
The NUM_TESTS_PER_EVICTION_RUN property.
|
static String |
TEST_ON_BORROW
The TEST_ON_BORROW property.
|
static String |
TEST_ON_RETURN
The Constant TEST_ON_RETURN.
|
static String |
TEST_WHILE_IDLE
The TEST_WHILE_IDLE property.
|
static String |
TIME_BETWEEN_EVICTION_RUNS_MILLIS
The TIME_BETWEEN_EVICTION_RUNS_MILLIS property.
|
static String |
WHEN_EXHAUSTED_ACTION
The WHEN_EXHAUSTED_ACTION property.
|
Constructor and Description |
---|
PooledAliasConnectionProvider()
Instantiates a new pooled alias connection provider.
|
Modifier and Type | Method and Description |
---|---|
protected Connection |
createConnection(Alias alias)
Creates the jdbc connection.
|
protected Connection |
createConnection(Alias alias,
Properties props)
Creates the jdbc connection.
|
getCallback, getConnection, getJndiConnection, isJndiConnection, releaseConnection
public static final String MAX_ACTIVE
public static final String WHEN_EXHAUSTED_ACTION
public static final String MAX_WAIT
public static final String MAX_IDLE
public static final String MIN_IDLE
public static final String TEST_ON_BORROW
public static final String TEST_ON_RETURN
public static final String TIME_BETWEEN_EVICTION_RUNS_MILLIS
public static final String NUM_TESTS_PER_EVICTION_RUN
public static final String MIN_EVICTABLE_IDLE_TIME_MILLIS
public static final String TEST_WHILE_IDLE
public PooledAliasConnectionProvider()
protected Connection createConnection(Alias alias, Properties props) throws Exception
AliasConnectionProvider
createConnection
in class AliasConnectionProvider
alias
- the aliasException
- in case of any errorprotected Connection createConnection(Alias alias) throws Exception
AliasConnectionProvider
createConnection
in class AliasConnectionProvider
alias
- the aliasException
- in case of any errorCopyright © 2010-2020 Toolsverse. All Rights Reserved.