Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
hazelcast::client::endpoint Class Reference

Endpoint represents a peer in the cluster. More...

#include <endpoint.h>

Inheritance diagram for hazelcast::client::endpoint:

Public Member Functions

 endpoint (boost::uuids::uuid uuid, boost::optional< address > socket_address)
boost::uuids::uuid get_uuid () const
 Returns the UUID of this endpoint.
const boost::optional< address > & get_socket_address () const
 Returns the socket address for this endpoint.

Detailed Description

Endpoint represents a peer in the cluster.

It is the client.

Definition at line 34 of file endpoint.h.

Constructor & Destructor Documentation

◆ endpoint()

hazelcast::client::endpoint::endpoint ( boost::uuids::uuid uuid,
boost::optional< address > socket_address )

Definition at line 169 of file cluster.cpp.

171 : uuid_(uuid)
172 , socket_address_(std::move(socket_address))
173{}

Member Function Documentation

◆ get_socket_address()

const boost::optional< address > & hazelcast::client::endpoint::get_socket_address ( ) const

Returns the socket address for this endpoint.

Returns
the socket address for this endpoint

Definition at line 182 of file cluster.cpp.

183{
184 return socket_address_;
185}

◆ get_uuid()

boost::uuids::uuid hazelcast::client::endpoint::get_uuid ( ) const

Returns the UUID of this endpoint.

Returns
the UUID of this endpoint

Definition at line 176 of file cluster.cpp.

177{
178 return uuid_;
179}

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