userver: dist_lock::DistLockSettings Struct Reference
Loading...
Searching...
No Matches
dist_lock::DistLockSettings Struct Reference

#include <userver/dist_lock/dist_lock_settings.hpp>

Detailed Description

Distributed lock settings.

Definition at line 14 of file dist_lock_settings.hpp.

Public Attributes

std::chrono::milliseconds acquire_interval {100}
 How often to try to acquire the lock.
 
std::chrono::milliseconds prolong_interval {100}
 How often to try to prolong the lock while holding the lock.
 
std::chrono::milliseconds lock_ttl {1000}
 For how long to acquire/prolong the lock.
 
std::chrono::milliseconds forced_stop_margin {50}
 
std::chrono::milliseconds worker_func_restart_delay {100}
 Delay before failed worker_func restart.
 

Member Data Documentation

◆ acquire_interval

std::chrono::milliseconds dist_lock::DistLockSettings::acquire_interval {100}

How often to try to acquire the lock.

Definition at line 16 of file dist_lock_settings.hpp.

◆ forced_stop_margin

std::chrono::milliseconds dist_lock::DistLockSettings::forced_stop_margin {50}

How much time we allow for the worker to stop when we're unable to prolong the lock.

Definition at line 26 of file dist_lock_settings.hpp.

◆ lock_ttl

std::chrono::milliseconds dist_lock::DistLockSettings::lock_ttl {1000}

For how long to acquire/prolong the lock.

Definition at line 22 of file dist_lock_settings.hpp.

◆ prolong_interval

std::chrono::milliseconds dist_lock::DistLockSettings::prolong_interval {100}

How often to try to prolong the lock while holding the lock.

Definition at line 19 of file dist_lock_settings.hpp.

◆ worker_func_restart_delay

std::chrono::milliseconds dist_lock::DistLockSettings::worker_func_restart_delay {100}

Delay before failed worker_func restart.

Definition at line 29 of file dist_lock_settings.hpp.


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