Modifier and Type | Method and Description |
---|---|
PoolLogger |
PoolLogger.Builder.build()
Creates a new
PoolLogger object based on the settings of this builder. |
static PoolLogger |
PoolLogger.defaultLogger()
Returns a default
PoolLogger object. |
static PoolLogger |
PoolLogger.noopLogger()
Returns a
PoolLogger object that does not perform any actual logging. |
Modifier and Type | Method and Description |
---|---|
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.