C++ Server-Side SDK
LaunchDarkly SDK
|
#include <serialized_item_descriptor.hpp>
Static Public Member Functions | |
static SerializedItemDescriptor | Present (std::uint64_t const version, std::string data) |
Constructs a SerializedItemDescriptor from a version and a serialized item. | |
static SerializedItemDescriptor | Tombstone (std::uint64_t const version, std::string tombstone_rep) |
Constructs a SerializedItemDescriptor from a version and a tombstone. | |
Public Attributes | |
std::uint64_t | version |
bool | deleted |
std::string | serializedItem |
A versioned item which can be stored or loaded from a persistent store.
|
inlinestatic |
Constructs a SerializedItemDescriptor from a version and a serialized item.
version | Version of item. |
data | Serialized item. |
|
inlinestatic |
Constructs a SerializedItemDescriptor from a version and a tombstone.
This is used when an item is deleted: the tombstone can be stored in place of the item, and the version checked in the future. Without the tombstone, out-of-order data updates could "resurrect" a deleted item.
version | Version of the item. |
tombstone_rep | Serialized tombstone representation of the item. |
bool launchdarkly::server_side::integrations::SerializedItemDescriptor::deleted |
During an Init/Upsert, when this is true, the serializedItem will contain a tombstone representation. If the persistence implementation can efficiently store the deletion state, and version, then it may choose to discard the item.