public class StrictMaxBeanInstancePool<T extends StrictMaxBeanInstancePool<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StrictMaxBeanInstancePool.DeriveSize |
static class |
StrictMaxBeanInstancePool.TimeoutUnit |
Constructor and Description |
---|
StrictMaxBeanInstancePool(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Integer |
derivedSize()
Derived maximum number of bean instances that the pool can hold at a
given point in time
|
T |
derivedSize(Integer value)
Derived maximum number of bean instances that the pool can hold at a
given point in time
|
StrictMaxBeanInstancePool.DeriveSize |
deriveSize()
Specifies if and what the max pool size should be derived from.
|
T |
deriveSize(StrictMaxBeanInstancePool.DeriveSize value)
Specifies if and what the max pool size should be derived from.
|
String |
getKey() |
Integer |
maxPoolSize()
Configured maximum number of bean instances that the pool can hold at a
given point in time
|
T |
maxPoolSize(Integer value)
Configured maximum number of bean instances that the pool can hold at a
given point in time
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Long |
timeout()
The maximum amount of time to wait for a bean instance to be available
from the pool
|
T |
timeout(Long value)
The maximum amount of time to wait for a bean instance to be available
from the pool
|
StrictMaxBeanInstancePool.TimeoutUnit |
timeoutUnit()
The instance acquisition timeout unit
|
T |
timeoutUnit(StrictMaxBeanInstancePool.TimeoutUnit value)
The instance acquisition timeout unit
|
public StrictMaxBeanInstancePool(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public StrictMaxBeanInstancePool.DeriveSize deriveSize()
public T deriveSize(StrictMaxBeanInstancePool.DeriveSize value)
public Integer derivedSize()
public T derivedSize(Integer value)
public Integer maxPoolSize()
public T maxPoolSize(Integer value)
public Long timeout()
public T timeout(Long value)
public StrictMaxBeanInstancePool.TimeoutUnit timeoutUnit()
public T timeoutUnit(StrictMaxBeanInstancePool.TimeoutUnit value)
Copyright © 2019 JBoss by Red Hat. All rights reserved.