public abstract class BasePoolConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BasePoolConfig.Builder
Builder for
BasePoolConfig. |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_TEST_ON_ACQUIRE
The default value for the
testOnAcquire configuration attribute. |
static boolean |
DEFAULT_TEST_ON_CREATE
The default value for the
testOnCreate configuration attribute. |
static boolean |
DEFAULT_TEST_ON_RELEASE
The default value for the
testOnRelease configuration attribute. |
| Modifier | Constructor and Description |
|---|---|
protected |
BasePoolConfig(boolean testOnCreate,
boolean testOnAcquire,
boolean testOnRelease) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTestOnAcquire()
Get the value for the
testOnAcquire configuration attribute for pools created with this configuration instance. |
boolean |
isTestOnCreate()
Get the value for the
testOnCreate configuration attribute for pools created with this configuration instance. |
boolean |
isTestOnRelease()
Get the value for the
testOnRelease configuration attribute for pools created with this configuration instance. |
public static final boolean DEFAULT_TEST_ON_CREATE
testOnCreate configuration attribute.public static final boolean DEFAULT_TEST_ON_ACQUIRE
testOnAcquire configuration attribute.public static final boolean DEFAULT_TEST_ON_RELEASE
testOnRelease configuration attribute.protected BasePoolConfig(boolean testOnCreate,
boolean testOnAcquire,
boolean testOnRelease)
public boolean isTestOnCreate()
testOnCreate configuration attribute for pools created with this configuration instance.testOnCreate for this configuration instance.public boolean isTestOnAcquire()
testOnAcquire configuration attribute for pools created with this configuration instance.testOnAcquire for this configuration instance.public boolean isTestOnRelease()
testOnRelease configuration attribute for pools created with this configuration instance.testOnRelease for this configuration instance.Copyright © 2019 lettuce.io. All rights reserved.