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
Since:
6.2.0
See Also:
  • Constructor Details

    • MongoDbConnectionPoolProperties

      public MongoDbConnectionPoolProperties()
  • Method Details

    • getLifeTime

      public String 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

      public String 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

      public String 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

      public MongoDbConnectionPoolProperties setLifeTime(String lifeTime)
      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

      public MongoDbConnectionPoolProperties setIdleTime(String idleTime)
      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

      public MongoDbConnectionPoolProperties setMaxWaitTime(String maxWaitTime)
      The maximum time that a thread may wait for a connection to become available.
      Returns:
      this.
    • setMaxSize

      public MongoDbConnectionPoolProperties setMaxSize(int maxSize)
      Maximum number of connections to keep around.
      Returns:
      this.
    • setMinSize

      public MongoDbConnectionPoolProperties setMinSize(int minSize)
      Minimum number of connections to keep around.
      Returns:
      this.
    • setPerHost

      public MongoDbConnectionPoolProperties setPerHost(int perHost)
      Total number of connections allowed per host.
      Returns:
      this.