Class MongoDbConnectionPoolProperties
java.lang.Object
org.apereo.cas.configuration.model.support.mongo.MongoDbConnectionPoolProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-mongo-core")
public class MongoDbConnectionPoolProperties
extends Object
implements Serializable
This is
MongoDbConnectionPoolProperties
.- Since:
- 6.2.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe maximum idle time of a pooled connection.The maximum time a pooled connection can live for.int
Maximum number of connections to keep around.The maximum time that a thread may wait for a connection to become available.int
Minimum number of connections to keep around.int
Total number of connections allowed per host.setIdleTime
(String idleTime) The maximum idle time of a pooled connection.setLifeTime
(String lifeTime) The maximum time a pooled connection can live for.setMaxSize
(int maxSize) Maximum number of connections to keep around.setMaxWaitTime
(String maxWaitTime) The maximum time that a thread may wait for a connection to become available.setMinSize
(int minSize) Minimum number of connections to keep around.setPerHost
(int perHost) Total number of connections allowed per host.
-
Constructor Details
-
MongoDbConnectionPoolProperties
public MongoDbConnectionPoolProperties()
-
-
Method Details
-
getLifeTime
The maximum time a pooled connection can live for. A zero value indicates no limit to the life time. A pooled connection that has exceeded its life time will be closed and replaced when necessary by a new connection. -
getIdleTime
The maximum idle time of a pooled connection. A zero value indicates no limit to the idle time. A pooled connection that has exceeded its idle time will be closed and replaced when necessary by a new connection. -
getMaxWaitTime
The maximum time that a thread may wait for a connection to become available. -
getMaxSize
public int getMaxSize()Maximum number of connections to keep around. -
getMinSize
public int getMinSize()Minimum number of connections to keep around. -
getPerHost
public int getPerHost()Total number of connections allowed per host. -
setLifeTime
The maximum time a pooled connection can live for. A zero value indicates no limit to the life time. A pooled connection that has exceeded its life time will be closed and replaced when necessary by a new connection.- Returns:
this
.
-
setIdleTime
The maximum idle time of a pooled connection. A zero value indicates no limit to the idle time. A pooled connection that has exceeded its idle time will be closed and replaced when necessary by a new connection.- Returns:
this
.
-
setMaxWaitTime
The maximum time that a thread may wait for a connection to become available.- Returns:
this
.
-
setMaxSize
Maximum number of connections to keep around.- Returns:
this
.
-
setMinSize
Minimum number of connections to keep around.- Returns:
this
.
-
setPerHost
Total number of connections allowed per host.- Returns:
this
.
-