public class ConnectionPoolComponent<T extends ConnectionPoolComponent<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionPoolComponent.ExhaustedAction |
Constructor and Description |
---|
ConnectionPoolComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
ConnectionPoolComponent.ExhaustedAction |
exhaustedAction()
Specifies what happens when asking for a connection from a server's pool,
and that pool is exhausted.
|
T |
exhaustedAction(ConnectionPoolComponent.ExhaustedAction value)
Specifies what happens when asking for a connection from a server's pool,
and that pool is exhausted.
|
String |
getKey() |
Integer |
maxActive()
Controls the maximum number of connections per server that are allocated
(checked out to client threads, or idle in the pool) at one time.
|
T |
maxActive(Integer value)
Controls the maximum number of connections per server that are allocated
(checked out to client threads, or idle in the pool) at one time.
|
Long |
maxWait()
The amount of time in milliseconds to wait for a connection to become
available when the exhausted action is ExhaustedAction.WAIT, after which
a java.util.NoSuchElementException will be thrown.
|
T |
maxWait(Long value)
The amount of time in milliseconds to wait for a connection to become
available when the exhausted action is ExhaustedAction.WAIT, after which
a java.util.NoSuchElementException will be thrown.
|
Long |
minEvictableIdleTime()
Specifies the minimum amount of time that an connection may sit idle in
the pool before it is eligible for eviction due to idle time.
|
T |
minEvictableIdleTime(Long value)
Specifies the minimum amount of time that an connection may sit idle in
the pool before it is eligible for eviction due to idle time.
|
Integer |
minIdle()
Sets a target value for the minimum number of idle connections (per
server) that should always be available.
|
T |
minIdle(Integer value)
Sets a target value for the minimum number of idle connections (per
server) that should always be available.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public ConnectionPoolComponent.ExhaustedAction exhaustedAction()
public T exhaustedAction(ConnectionPoolComponent.ExhaustedAction value)
public Integer maxActive()
public T maxActive(Integer value)
public Long maxWait()
public T maxWait(Long value)
public Long minEvictableIdleTime()
public T minEvictableIdleTime(Long value)
public Integer minIdle()
public T minIdle(Integer value)
Copyright © 2019 JBoss by Red Hat. All rights reserved.