Modifier and Type | Method and Description |
---|---|
static PoolConfig.Builder |
PoolConfig.custom()
Returns a new builder for creating
PoolConfig objects. |
PoolConfig.Builder |
PoolConfig.Builder.withInitialSize(int initialSize)
Sets the initial pool size.
|
PoolConfig.Builder |
PoolConfig.Builder.withMaxIdleTime(Duration maxIdleTime)
Sets the maximum time that objects can be idle.
|
PoolConfig.Builder |
PoolConfig.Builder.withMaxSize(int maxSize)
Sets the maximum pool size.
|
PoolConfig.Builder |
PoolConfig.Builder.withMaxWaitTime(Duration maxWaitTime)
Sets the maximum time to wait when acquiring objects using
Pool.acquire() or Pool.acquire(Supplier) . |
Copyright © 2022. All rights reserved.