Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
hazelcast::cp::cp_proxy Class Reference
Inheritance diagram for hazelcast::cp::cp_proxy:

Public Member Functions

 cp_proxy (const std::string &service_name, const std::string &proxy_name, client::spi::ClientContext *context, const raft_group_id &group_id, const std::string &object_name)
const raft_group_idget_group_id () const

Protected Member Functions

void on_destroy ()

Protected Attributes

raft_group_id group_id_
std::string object_name_

Detailed Description

Definition at line 52 of file cp.h.

Constructor & Destructor Documentation

◆ cp_proxy()

hazelcast::cp::cp_proxy::cp_proxy ( const std::string & service_name,
const std::string & proxy_name,
client::spi::ClientContext * context,
const raft_group_id & group_id,
const std::string & object_name )

Definition at line 187 of file cp.cpp.

192 : ProxyImpl(service_name, proxy_name, context)
193 , group_id_(group_id)
194 , object_name_(object_name)
195{}

Member Function Documentation

◆ get_group_id()

const raft_group_id & hazelcast::cp::cp_proxy::get_group_id ( ) const

Definition at line 206 of file cp.cpp.

207{
208 return group_id_;
209}

◆ on_destroy()

void hazelcast::cp::cp_proxy::on_destroy ( )
protected

Definition at line 198 of file cp.cpp.

199{
200 auto request = cpgroup_destroycpobject_encode(
201 group_id_, get_service_name(), object_name_);
202 invoke(request).get();
203}

Member Data Documentation

◆ group_id_

raft_group_id hazelcast::cp::cp_proxy::group_id_
protected

Definition at line 64 of file cp.h.

◆ object_name_

std::string hazelcast::cp::cp_proxy::object_name_
protected

Definition at line 65 of file cp.h.


The documentation for this class was generated from the following files:
  • hazelcast/include/hazelcast/cp/cp.h
  • hazelcast/src/hazelcast/cp/cp.cpp