![]() |
fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
|
Represents options used when creating an AttachmentPool object. More...
#include <AttachmentPool.h>
Public Member Functions | |
| const AttachmentOptions & | getAttachmentOptions () const |
| Returns the options used to create each pooled Attachment. | |
| AttachmentPoolOptions & | setAttachmentOptions (const AttachmentOptions &value) |
| Sets the options used to create each pooled Attachment. | |
| std::size_t | getMinSize () const |
| Returns the minimum number of connections kept warm by the pool. | |
| AttachmentPoolOptions & | setMinSize (std::size_t value) |
| Sets the minimum number of connections kept warm by the pool. | |
| std::size_t | getMaxSize () const |
| Returns the maximum number of connections the pool may create. | |
| AttachmentPoolOptions & | setMaxSize (std::size_t value) |
| Sets the maximum number of connections the pool may create. | |
| std::chrono::milliseconds | getAcquireTimeout () const |
| Returns how long acquire() waits for a connection to become available before throwing. | |
| AttachmentPoolOptions & | setAcquireTimeout (std::chrono::milliseconds value) |
| Sets how long acquire() waits for a connection to become available before throwing. | |
| const std::optional< std::chrono::milliseconds > & | getIdleTimeout () const |
| Returns the maximum time a connection may stay idle in the pool before being closed. | |
| AttachmentPoolOptions & | setIdleTimeout (std::chrono::milliseconds value) |
| Sets the maximum time a connection may stay idle in the pool before being closed. | |
| const std::optional< std::chrono::milliseconds > & | getMaxLifetime () const |
| Returns the maximum lifetime of a connection, regardless of usage. | |
| AttachmentPoolOptions & | setMaxLifetime (std::chrono::milliseconds value) |
| Sets the maximum lifetime of a connection, regardless of usage. | |
| bool | getValidateOnAcquire () const |
| Returns whether a connection is validated (via ping) before being handed out by acquire(). | |
| AttachmentPoolOptions & | setValidateOnAcquire (bool value) |
| Sets whether a connection is validated (via ping) before being handed out by acquire(). | |
| bool | getSessionResetOnRelease () const |
| Returns whether a connection has its session reset (via ALTER SESSION RESET) before being returned to the pool. | |
| AttachmentPoolOptions & | setSessionResetOnRelease (bool value) |
| Sets whether a connection has its session reset (via ALTER SESSION RESET) before being returned to the pool. | |
Represents options used when creating an AttachmentPool object.
Definition at line 52 of file AttachmentPool.h.
|
inline |
Returns how long acquire() waits for a connection to become available before throwing.
Definition at line 111 of file AttachmentPool.h.
|
inline |
Returns the options used to create each pooled Attachment.
Definition at line 58 of file AttachmentPool.h.
|
inline |
Returns the maximum time a connection may stay idle in the pool before being closed.
Definition at line 128 of file AttachmentPool.h.
|
inline |
Returns the maximum lifetime of a connection, regardless of usage.
Definition at line 146 of file AttachmentPool.h.
|
inline |
Returns the maximum number of connections the pool may create.
Definition at line 94 of file AttachmentPool.h.
|
inline |
Returns the minimum number of connections kept warm by the pool.
Definition at line 77 of file AttachmentPool.h.
|
inline |
Returns whether a connection has its session reset (via ALTER SESSION RESET) before being returned to the pool.
Definition at line 181 of file AttachmentPool.h.
|
inline |
Returns whether a connection is validated (via ping) before being handed out by acquire().
Definition at line 163 of file AttachmentPool.h.
|
inline |
Sets how long acquire() waits for a connection to become available before throwing.
Definition at line 119 of file AttachmentPool.h.
|
inline |
Sets the options used to create each pooled Attachment.
AttachmentOptions::setCreateDatabase must not be enabled, since a pool only attaches to an existing database.
Definition at line 68 of file AttachmentPool.h.
|
inline |
Sets the maximum time a connection may stay idle in the pool before being closed.
Connections are never evicted below getMinSize() due to idling.
Definition at line 137 of file AttachmentPool.h.
|
inline |
Sets the maximum lifetime of a connection, regardless of usage.
Definition at line 154 of file AttachmentPool.h.
|
inline |
Sets the maximum number of connections the pool may create.
Definition at line 102 of file AttachmentPool.h.
|
inline |
Sets the minimum number of connections kept warm by the pool.
Definition at line 85 of file AttachmentPool.h.
|
inline |
Sets whether a connection has its session reset (via ALTER SESSION RESET) before being returned to the pool.
A connection whose reset fails is discarded instead of being reused.
Definition at line 190 of file AttachmentPool.h.
|
inline |
Sets whether a connection is validated (via ping) before being handed out by acquire().
Definition at line 171 of file AttachmentPool.h.