PoolConfiguration

com.github.mauricio.async.db.pool.PoolConfiguration
See thePoolConfiguration companion object
case class PoolConfiguration(maxObjects: Int, maxIdle: Long, maxQueueSize: Int, validationInterval: Long)

Defines specific pieces of a pool's behavior.

Value parameters

maxIdle

number of milliseconds for which the objects are going to be kept as idle (not in use by clients of the pool)

maxObjects

how many objects this pool will hold

maxQueueSize

when there are no more objects, the pool can queue up requests to serve later then there are objects available, this is the maximum number of enqueued requests

validationInterval

pools will use this value as the timer period to validate idle objects.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product