Pool for storing limited amount of connections as PooledConnection.
Pool is used by ConnectionAccessQueue which takes care of the situations
when connections aren't immediately available.
Methods which might alter the connection vectors are internally synchronized so
that only one thread at a time can perform operations on them. However several threads
may be creating connections at the same time.
Constructs the pool.
Parameters: name - Name of pool Parameters: factory - Connection factory Parameters: min - Recommended minimum amount of connections Parameters: max - Absolute maximum amount of connections Parameters: lifetime - Lifetime of connection (ms) Parameters: checkTimeout - Period after which connections are checked out (ms)
Notifies pool about the connection being released.
Allocator thread is interrupted immediately because active
connections now contains released connection whose state
need to be checked.
Parameters: connection - Connection
Shuts the pool down. Allocator thread is stopped and all connections
are unconditionally released and closed.
See Also:ConnectionPool.ConnectionAllocator