PoolOptions

The options for configuring a connection pool.

@author <a href="mailto:julien@julienviet.com">Julien Viet</a>

Constructors

this
this()
Undocumented in source.
this
this(PoolOptions other)
Undocumented in source.

Members

Functions

awaittingTimeout
Duration awaittingTimeout()
Undocumented in source. Be warned that the author may not have intended to support it.
awaittingTimeout
PoolOptions awaittingTimeout(Duration value)
Undocumented in source. Be warned that the author may not have intended to support it.
getMaxSize
int getMaxSize()

@return the maximum pool size

getMaxWaitQueueSize
int getMaxWaitQueueSize()

@return the maximum wait queue size

opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
retry
PoolOptions retry(size_t value)
Undocumented in source. Be warned that the author may not have intended to support it.
retry
size_t retry()
Undocumented in source. Be warned that the author may not have intended to support it.
setMaxSize
PoolOptions setMaxSize(int maxSize)

Set the maximum pool size

setMaxWaitQueueSize
PoolOptions setMaxWaitQueueSize(int maxWaitQueueSize)

Set the maximum connection request allowed in the wait queue, any requests beyond the max size will result in an failure. If the value is set to a negative number then the queue will be unbounded.

toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

DEFAULT_MAX_SIZE
enum int DEFAULT_MAX_SIZE;

The default maximum number of connections a client will pool = 4

DEFAULT_MAX_WAIT_QUEUE_SIZE
enum int DEFAULT_MAX_WAIT_QUEUE_SIZE;

Default max wait queue size = -1 (unbounded)

Meta