C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
launchdarkly::server_side::integrations::SegmentKind Class Referencefinal
Inheritance diagram for launchdarkly::server_side::integrations::SegmentKind:
Inheritance graph
[legend]
Collaboration diagram for launchdarkly::server_side::integrations::SegmentKind:
Collaboration graph
[legend]

Public Member Functions

std::string const & Namespace () const override
 
std::uint64_t Version (std::string const &data) const override
 
- Public Member Functions inherited from launchdarkly::server_side::integrations::ISerializedItemKind
 ISerializedItemKind (ISerializedItemKind const &item)=delete
 
 ISerializedItemKind (ISerializedItemKind &&item)=delete
 
ISerializedItemKindoperator= (ISerializedItemKind const &)=delete
 
ISerializedItemKindoperator= (ISerializedItemKind &&)=delete
 

Member Function Documentation

◆ Namespace()

std::string const & launchdarkly::server_side::integrations::SegmentKind::Namespace ( ) const
overridevirtual

The namespace for the data.

Implements launchdarkly::server_side::integrations::ISerializedItemKind.

◆ Version()

std::uint64_t launchdarkly::server_side::integrations::SegmentKind::Version ( std::string const &  data) const
overridevirtual

Deserialize data and return the version of the data.

This is for cases where the persistent store cannot avoid deserializing data to determine its version. For instance a Redis store where the only columns are the prefixed key and the serialized data.

If the data cannot be deserialized, then 0 will be returned.

Parameters
dataThe data to deserialize.
Returns
The version of the data.

Implements launchdarkly::server_side::integrations::ISerializedItemKind.


The documentation for this class was generated from the following files: