Hazelcast C++ Client
Public Member Functions | Friends | List of all members
hazelcast::client::IdGenerator Class Reference

#include <IdGenerator.h>

+ Inheritance diagram for hazelcast::client::IdGenerator:

Public Member Functions

virtual bool init (int64_t id)
 
virtual int64_t newId ()
 

Friends

class impl::HazelcastClientInstanceImpl
 
class FlakeIdGenerator
 

Detailed Description

Deprecated:
The implementation can produce duplicate IDs in case of network split, even with split-brain protection enabled (during short window while split-brain is detected).

Use HazelcastClient#getFlakeIdGenerator(const std::string &) for an alternative implementation which does not suffer from this problem.

Cluster-wide unique id generator.


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