Modifier and Type | Method and Description |
---|---|
PoolConfig |
PoolConfig.Builder.build()
Creates a new
PoolConfig object based on the settings of this builder. |
static PoolConfig |
PoolConfig.defaultConfig()
Returns a default
PoolConfig object. |
Modifier and Type | Method and Description |
---|---|
void |
PoolLogger.createdPool(PoolConfig config)
Called when a
Pool has been created. |
void |
PoolLogger.creatingPool(PoolConfig config)
Called when a
Pool is being created. |
static <T> Pool<ObjectWrapper<T>,None> |
ObjectWrapper.newPool(PoolConfig config,
Supplier<T> supplier,
PoolLogger logger)
Creates a new pool of
ObjectWrapper instances. |
static <T extends PoolableObject<None>> |
Pool.throwingNone(PoolConfig config,
Supplier<T> supplier,
PoolLogger logger)
Creates a new pool that throws no exceptions.
|
Constructor and Description |
---|
Pool(PoolConfig config,
PoolableObjectFactory<T,X> factory,
PoolLogger logger)
Creates a new pool.
|
Copyright © 2022. All rights reserved.