|
C++ YT Wrapper
C++ library for working with YT clusters
|
Interface representing a lock obtained from NYT::ITransaction::Lock. More...
#include <client.h>
Public Member Functions | |
| virtual const TLockId & | GetId () const =0 |
| Get cypress node id of lock itself. | |
| virtual TNodeId | GetLockedNodeId () const =0 |
| Get cypress node id of locked object. | |
| virtual const ::NThreading::TFuture< void > & | GetAcquiredFuture () const =0 |
| Get future that will be set once lock is in "acquired" state. | |
| void | Wait (TDuration timeout=TDuration::Max()) |
| Wait until lock is in "acquired" state. | |
Interface representing a lock obtained from NYT::ITransaction::Lock.
|
pure virtual |
Get future that will be set once lock is in "acquired" state.
Note that future might contain exception if some error occurred e.g. lock transaction was aborted.
| void NYT::ILock::Wait | ( | TDuration | timeout = TDuration::Max() | ) |
Wait until lock is in "acquired" state.
Throws exception if timeout exceeded or some error occurred e.g. lock transaction was aborted.