C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TLockOptions Struct Reference

Options for locking cypress node. More...

#include <client_method_options.h>

Inheritance diagram for NYT::TLockOptions:
NYT::TPrerequisiteOptions< TLockOptions > NYT::TPrerequisiteRevisionsOptions< TLockOptions > NYT::TPrerequisiteTransactionsOptions< TLockOptions >

Public Member Functions

TSelf & AttributeKey (TString)
 Whether to wait already locked node to be unlocked.
TSelf & ChildKey (TString)
 Also take child_key lock.
Public Member Functions inherited from NYT::TPrerequisiteRevisionsOptions< TLockOptions >
 FLUENT_VECTOR_FIELD (TPrerequisiteRevision, PrerequisiteRevision)
 Cypress nodes whose current revisions must match the expected ones.
Public Member Functions inherited from NYT::TPrerequisiteTransactionsOptions< TLockOptions >
 FLUENT_VECTOR_FIELD (TTransactionId, PrerequisiteTransactionId)
 Transactions that must be alive.

Detailed Description

Member Function Documentation

◆ AttributeKey()

TSelf & NYT::TLockOptions::AttributeKey ( TString )

Whether to wait already locked node to be unlocked.

If `Waitable' is set to true Lock method will create waitable lock, that will be taken once other transactions that hold lock to that node are committed / aborted.

Note
Lock method DOES NOT wait until lock is actually acquired. Waiting should be done using corresponding methods of ILock.
See also
https://ytsaurus.tech/docs/en/user-guide/storage/transactions#locking_queue */ TSelf& Waitable ( bool ); ;

/**

Also take attribute_key lock.

See also
https://ytsaurus.tech/docs/en/user-guide/storage/transactions#locks_compatibility

◆ ChildKey()

TSelf & NYT::TLockOptions::ChildKey ( TString )

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