Clio develop
The XRP Ledger API server.
|
Bundles all cassandra settings in one place. More...
#include <Cluster.hpp>
Classes | |
struct | ContactPoints |
Represents the configuration of contact points for cassandra. More... | |
struct | SecureConnectionBundle |
Represents the configuration of a secure connection bundle. More... | |
Public Member Functions | |
Settings | withContactPoints (std::string_view contactPoints) |
Creates a new Settings object as a copy of the current one with overridden contact points. | |
Static Public Member Functions | |
static Settings | defaultSettings () |
Returns the default settings. | |
Public Attributes | |
bool | enableLog = false |
Enables or disables cassandra driver logger. | |
std::chrono::milliseconds | connectionTimeout = std::chrono::milliseconds{kDEFAULT_CONNECTION_TIMEOUT} |
Connect timeout specified in milliseconds. | |
std::chrono::milliseconds | requestTimeout = std::chrono::milliseconds{0} |
Request timeout specified in milliseconds. | |
std::variant< ContactPoints, SecureConnectionBundle > | connectionInfo = ContactPoints{} |
Connection information; either ContactPoints or SecureConnectionBundle. | |
uint32_t | threads = std::thread::hardware_concurrency() |
The number of threads for the driver to pool. | |
uint32_t | maxWriteRequestsOutstanding = kDEFAULT_MAX_WRITE_REQUESTS_OUTSTANDING |
The maximum number of outstanding write requests at any given moment. | |
uint32_t | maxReadRequestsOutstanding = kDEFAULT_MAX_READ_REQUESTS_OUTSTANDING |
The maximum number of outstanding read requests at any given moment. | |
uint32_t | coreConnectionsPerHost = 1u |
The number of connection per host to always have active. | |
std::size_t | writeBatchSize = kDEFAULT_BATCH_SIZE |
Size of batches when writing. | |
std::optional< uint32_t > | queueSizeIO = std::nullopt |
Size of the IO queue. | |
std::optional< std::string > | certificate = std::nullopt |
SSL certificate. | |
std::optional< std::string > | username = std::nullopt |
Username/login. | |
std::optional< std::string > | password = std::nullopt |
Password to match the username | |
Bundles all cassandra settings in one place.