OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
zookeeper::client::ZookeeperLock Class Reference

#include <zookeeper_client.h>

Classes

class  ZookeeperLockImpl
 

Public Member Functions

 ZookeeperLock (ZookeeperClient *client, const char *path)
 
virtual ~ZookeeperLock ()
 
bool Lock ()
 
bool Release ()
 

Private Member Functions

std::string Id () const
 

Private Attributes

std::unique_ptr
< ZookeeperLockImpl
impl_
 

Friends

class ::ZookeeperClientTest
 

Detailed Description

Definition at line 57 of file zookeeper_client.h.

Constructor & Destructor Documentation

zookeeper::client::ZookeeperLock::ZookeeperLock ( ZookeeperClient client,
const char *  path 
)

Definition at line 457 of file zookeeper_client.cc.

zookeeper::client::ZookeeperLock::~ZookeeperLock ( )
virtual

Definition at line 461 of file zookeeper_client.cc.

Member Function Documentation

std::string zookeeper::client::ZookeeperLock::Id ( ) const
private

Definition at line 464 of file zookeeper_client.cc.

bool zookeeper::client::ZookeeperLock::Lock ( )

Definition at line 468 of file zookeeper_client.cc.

bool zookeeper::client::ZookeeperLock::Release ( )

Definition at line 472 of file zookeeper_client.cc.

Friends And Related Function Documentation

friend class ::ZookeeperClientTest
friend

Definition at line 66 of file zookeeper_client.h.

Member Data Documentation

std::unique_ptr<ZookeeperLockImpl> zookeeper::client::ZookeeperLock::impl_
private

Definition at line 71 of file zookeeper_client.h.


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