16 #ifndef HAZELCAST_ID_GENERATOR
17 #define HAZELCAST_ID_GENERATOR
19 #include "hazelcast/client/IAtomicLong.h"
20 #include "hazelcast/util/AtomicInt.h"
21 #include <boost/shared_ptr.hpp>
24 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
26 #pragma warning(disable: 4251) //for dll export
36 class IdGeneratorSupport;
70 boost::shared_ptr< util::AtomicInt > local;
71 boost::shared_ptr< util::AtomicInt > residue;
72 boost::shared_ptr< util::Mutex > localLock;
73 IdGenerator(
const std::string &instanceName, spi::ClientContext *context);
81 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Cluster-wide unique id generator.
Definition: IdGenerator.h:42
IAtomicLong is a distributed atomic long implementation.
Definition: IAtomicLong.h:38
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:410