Package io.lettuce.core.support
Class CommonsPool2ConfigConverter
- java.lang.Object
-
- io.lettuce.core.support.CommonsPool2ConfigConverter
-
public class CommonsPool2ConfigConverter extends Object
Utility class to adapt Commons Pool 2 configuration toBoundedPoolConfig
.- Since:
- 5.1
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoundedPoolConfig
bounded(GenericObjectPoolConfig<?> config)
ConvertsGenericObjectPoolConfig
properties to an immutableBoundedPoolConfig
.
-
-
-
Method Detail
-
bounded
public static BoundedPoolConfig bounded(GenericObjectPoolConfig<?> config)
ConvertsGenericObjectPoolConfig
properties to an immutableBoundedPoolConfig
. Applies max total, min/max idle and test on borrow/create/release configuration.- Parameters:
config
- must not benull
.- Returns:
- the converted
BoundedPoolConfig
.
-
-