userver: ydb::CoordinationSession Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
ydb::CoordinationSession Class Referencefinal

Detailed Description

Definition at line 16 of file coordination.hpp.

Public Member Functions

std::uint64_t GetSessionId ()
 
NYdb::NCoordination::ESessionState GetSessionState ()
 
NYdb::NCoordination::EConnectionState GetConnectionState ()
 
void Close ()
 
void Ping ()
 
void Reconnect ()
 
bool AcquireSemaphore (std::string_view name, const NYdb::NCoordination::TAcquireSemaphoreSettings &settings)
 
bool ReleaseSemaphore (std::string_view name)
 
NYdb::NCoordination::TSemaphoreDescription DescribeSemaphore (std::string_view name, const NYdb::NCoordination::TDescribeSemaphoreSettings &settings)
 
void CreateSemaphore (std::string_view name, std::uint64_t limit)
 
void UpdateSemaphore (std::string_view name, std::string_view data)
 
void DeleteSemaphore (std::string_view name)
 

Member Function Documentation

◆ AcquireSemaphore()

bool ydb::CoordinationSession::AcquireSemaphore ( std::string_view name,
const NYdb::NCoordination::TAcquireSemaphoreSettings & settings )
Warning
Use TAcquireSemaphoreSettings::OnAccepted callback with care, it will be executed on a non-coroutine thread

◆ DescribeSemaphore()

NYdb::NCoordination::TSemaphoreDescription ydb::CoordinationSession::DescribeSemaphore ( std::string_view name,
const NYdb::NCoordination::TDescribeSemaphoreSettings & settings )
Warning
Use TDescribeSemaphoreSettings::OnChanged callback with care, it will be executed on a non-coroutine thread

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