18#ifndef _ATIVEMQ_UTIL_IDGENERATOR_H_
19#define _ATIVEMQ_UTIL_IDGENERATOR_H_
31 class IdGeneratorKernel;
37 mutable std::string seed;
38 mutable long long sequence;
40 static IdGeneratorKernel* kernel;
96 static int compare(
const std::string& id1,
const std::string& id2);
100 static void initialize();
101 static void shutdown();
#define AMQCPP_API
Definition: Config.h:30
Definition: ActiveMQCPP.h:26
Definition: IdGenerator.h:33
std::string generateId() const
static int compare(const std::string &id1, const std::string &id2)
Compares two generated id values.
static std::string getSeedFromId(const std::string &id)
Gets the seed value from a Generated Id, the count portion is removed.
static std::string getHostname()
Since the initialization of this object results in the retrieval of the machine's host name we can qu...
static long long getSequenceFromId(const std::string &id)
Gets the count value from a Generated Id, the seed portion is removed.
IdGenerator(const std::string &prefix)
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: CachedConsumer.h:24