16 #ifndef HAZELCAST_CLIENT_IDGENERATOR_H_ 17 #define HAZELCAST_CLIENT_IDGENERATOR_H_ 20 #include <boost/shared_ptr.hpp> 22 #include "hazelcast/util/HazelcastDll.h" 23 #include "hazelcast/client/impl/IdGeneratorInterface.h" 25 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 27 #pragma warning(disable: 4251) //for dll export 33 class HazelcastClientInstanceImpl;
44 class HAZELCAST_API
IdGenerator :
public impl::IdGeneratorInterface {
45 friend class impl::HazelcastClientInstanceImpl;
52 virtual bool init(int64_t
id);
54 virtual int64_t newId();
57 IdGenerator(
const boost::shared_ptr<impl::IdGeneratorInterface> &impl);
59 boost::shared_ptr<impl::IdGeneratorInterface> impl;
64 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) Definition: IdGenerator.h:44
A cluster-wide unique ID generator.
Definition: FlakeIdGenerator.h:53
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32