Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
data::cassandra::impl::Settings Struct Reference

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, SecureConnectionBundleconnectionInfo = 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
 

Static Public Attributes

static constexpr std::size_t kDEFAULT_CONNECTION_TIMEOUT = 10000
 
static constexpr uint32_t kDEFAULT_MAX_WRITE_REQUESTS_OUTSTANDING = 10'000
 
static constexpr uint32_t kDEFAULT_MAX_READ_REQUESTS_OUTSTANDING = 100'000
 
static constexpr std::size_t kDEFAULT_BATCH_SIZE = 20
 

Detailed Description

Bundles all cassandra settings in one place.


The documentation for this struct was generated from the following file: