activemq::util::LongSequenceGenerator Class Reference
This class is used to generate a sequence of long long values that are incremented each time a new value is requested.
More...
#include <src/main/activemq/util/LongSequenceGenerator.h>
Detailed Description
This class is used to generate a sequence of long long values that are incremented each time a new value is requested.
This class is thread safe so the ids can be requested in different threads safely.
Constructor & Destructor Documentation
| activemq::util::LongSequenceGenerator::LongSequenceGenerator |
( |
|
) |
|
| virtual activemq::util::LongSequenceGenerator::~LongSequenceGenerator |
( |
|
) |
[virtual] |
Member Function Documentation
| long long activemq::util::LongSequenceGenerator::getLastSequenceId |
( |
|
) |
|
- Returns:
- the last id that was generated.
| long long activemq::util::LongSequenceGenerator::getNextSequenceId |
( |
|
) |
|
- Returns:
- the next id in the sequence.
The documentation for this class was generated from the following file: