3 #include <launchdarkly/attribute_reference.hpp>
9 #include <unordered_map>
11 namespace launchdarkly::config::shared::builders {
16 namespace launchdarkly::config::shared::built {
20 template <
typename SDK>
46 std::chrono::milliseconds flush_interval,
48 bool all_attributes_private,
49 AttributeReference::SetType private_attrs,
50 std::chrono::milliseconds delivery_retry_delay,
51 std::size_t flush_workers,
52 std::optional<std::size_t> context_keys_cache_capacity);
57 [[nodiscard]]
bool Enabled()
const;
62 [[nodiscard]] std::size_t
Capacity()
const;
67 [[nodiscard]] std::chrono::milliseconds
FlushInterval()
const;
73 [[nodiscard]] std::chrono::milliseconds DeliveryRetryDelay()
const;
78 [[nodiscard]] std::string
const&
Path()
const;
104 std::size_t capacity_;
105 std::chrono::milliseconds flush_interval_;
107 bool all_attributes_private_;
108 AttributeReference::SetType private_attributes_;
109 std::chrono::milliseconds delivery_retry_delay_;
110 std::size_t flush_workers_;
111 std::optional<std::size_t> context_keys_cache_capacity_;
Definition: events_builder.hpp:29
Definition: events.hpp:18
AttributeReference::SetType const & PrivateAttributes() const
Definition: events.cpp:48
std::optional< std::size_t > ContextKeysCacheCapacity() const
Definition: events.cpp:56
Events(bool enabled, std::size_t capacity, std::chrono::milliseconds flush_interval, std::string path, bool all_attributes_private, AttributeReference::SetType private_attrs, std::chrono::milliseconds delivery_retry_delay, std::size_t flush_workers, std::optional< std::size_t > context_keys_cache_capacity)
Definition: events.cpp:5
std::string const & Path() const
Definition: events.cpp:40
std::size_t FlushWorkers() const
Definition: events.cpp:52
std::size_t Capacity() const
Definition: events.cpp:28
bool Enabled() const
Definition: events.cpp:24
std::chrono::milliseconds FlushInterval() const
Definition: events.cpp:32
bool AllAttributesPrivate() const
Definition: events.cpp:44