java.lang.Object
io.lettuce.core.support.CommonsPool2ConfigConverter
public class CommonsPool2ConfigConverter extends Object
Utility class to adapt Commons Pool 2 configuration to
BoundedPoolConfig.- Since:
- 5.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description static BoundedPoolConfigbounded(GenericObjectPoolConfig<?> config)ConvertsGenericObjectPoolConfigproperties to an immutableBoundedPoolConfig.
-
Method Details
-
bounded
ConvertsGenericObjectPoolConfigproperties 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.
-