|
PACS System 0.1.0
PACS DICOM system library
|
Unique identifier for a lock. More...
#include <study_lock_manager.h>

Public Member Functions | |
| auto | is_valid () const -> bool |
| Check if the token is valid (not expired) | |
| auto | is_expired () const -> bool |
| Check if the token has expired. | |
| auto | remaining_time () const -> std::optional< std::chrono::milliseconds > |
| Get remaining time until expiration. | |
Public Attributes | |
| std::string | token_id |
| Unique token ID. | |
| std::string | study_uid |
| Study UID that is locked. | |
| lock_type | type {lock_type::exclusive} |
| Type of lock held. | |
| std::chrono::system_clock::time_point | acquired_at |
| When the lock was acquired. | |
| std::optional< std::chrono::system_clock::time_point > | expires_at |
| When the lock expires (if timeout set) | |
Unique identifier for a lock.
Definition at line 85 of file study_lock_manager.h.
|
inlinenodiscard |
Check if the token has expired.
Definition at line 112 of file study_lock_manager.h.
References is_valid().

|
inlinenodiscard |
Check if the token is valid (not expired)
Definition at line 104 of file study_lock_manager.h.
References expires_at.
Referenced by is_expired().

|
inlinenodiscard |
Get remaining time until expiration.
Definition at line 119 of file study_lock_manager.h.
References expires_at.
| std::chrono::system_clock::time_point kcenon::pacs::workflow::lock_token::acquired_at |
When the lock was acquired.
Definition at line 96 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| std::optional<std::chrono::system_clock::time_point> kcenon::pacs::workflow::lock_token::expires_at |
When the lock expires (if timeout set)
Definition at line 99 of file study_lock_manager.h.
Referenced by is_valid(), kcenon::pacs::workflow::study_lock_manager::lock(), kcenon::pacs::workflow::study_lock_manager::refresh_lock(), and remaining_time().
| std::string kcenon::pacs::workflow::lock_token::study_uid |
Study UID that is locked.
Definition at line 90 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| std::string kcenon::pacs::workflow::lock_token::token_id |
Unique token ID.
Definition at line 87 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| lock_type kcenon::pacs::workflow::lock_token::type {lock_type::exclusive} |
Type of lock held.
Definition at line 93 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().