public class BoundedPoolConfig extends BasePoolConfig
BoundedAsyncPool. Instances can be created through a builder().BoundedAsyncPool| Modifier and Type | Class and Description |
|---|---|
static class |
BoundedPoolConfig.Builder
Builder for
BoundedPoolConfig. |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_IDLE
The default value for the
maxIdle configuration attribute. |
static int |
DEFAULT_MAX_TOTAL
The default value for the
maxTotal configuration attribute. |
static int |
DEFAULT_MIN_IDLE
The default value for the
minIdle configuration attribute. |
DEFAULT_TEST_ON_ACQUIRE, DEFAULT_TEST_ON_CREATE, DEFAULT_TEST_ON_RELEASE| Modifier | Constructor and Description |
|---|---|
protected |
BoundedPoolConfig(boolean testOnCreate,
boolean testOnAcquire,
boolean testOnRelease,
int maxTotal,
int maxIdle,
int minIdle) |
| Modifier and Type | Method and Description |
|---|---|
static BoundedPoolConfig.Builder |
builder()
Create a new
BoundedPoolConfig.Builder for BoundedPoolConfig. |
static BoundedPoolConfig |
create() |
int |
getMaxIdle()
Get the value for the
maxIdle configuration attribute for pools created with this configuration instance. |
int |
getMaxTotal()
Get the value for the
maxTotal configuration attribute for pools created with this configuration instance. |
int |
getMinIdle()
Get the value for the
minIdle configuration attribute for pools created with this configuration instance. |
isTestOnAcquire, isTestOnCreate, isTestOnReleasepublic static final int DEFAULT_MAX_TOTAL
maxTotal configuration attribute.public static final int DEFAULT_MAX_IDLE
maxIdle configuration attribute.public static final int DEFAULT_MIN_IDLE
minIdle configuration attribute.protected BoundedPoolConfig(boolean testOnCreate,
boolean testOnAcquire,
boolean testOnRelease,
int maxTotal,
int maxIdle,
int minIdle)
public static BoundedPoolConfig.Builder builder()
BoundedPoolConfig.Builder for BoundedPoolConfig.BoundedPoolConfig.Builder for BoundedPoolConfig.public static BoundedPoolConfig create()
public int getMaxTotal()
maxTotal configuration attribute for pools created with this configuration instance.maxTotal for this configuration instance.public int getMaxIdle()
maxIdle configuration attribute for pools created with this configuration instance.maxIdle for this configuration instance.public int getMinIdle()
minIdle configuration attribute for pools created with this configuration instance.minIdle for this configuration instance.Copyright © 2021 lettuce.io. All rights reserved.