@Deprecated
public interface PRDistributedAtomicSequence
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
getAtomicSequenceID(java.lang.String key,
long lastSaveId)
Deprecated.
This method returns a unique sequence id in a distributed system
This is thread-safe in the sense it will not generate the same id for two
different thread.It will give unique sequence value each time it gets called.
|
boolean |
isAtomicSequenceExist(java.lang.String key)
Deprecated.
This method checks whether the sequence is already there in distributed memory
|
void |
startAtomicSequence(java.lang.String key,
long startVal)
Deprecated.
This method create a new atomic sequence for the key
|
boolean isAtomicSequenceExist(java.lang.String key)
key
- void startAtomicSequence(java.lang.String key, long startVal)
key
- the key for which sequence will be generatedstartVal
- the start value from which the sequence will be generatedlong getAtomicSequenceID(java.lang.String key, long lastSaveId)
key
- the key for which sequence will be generatedlastSaveId
- the start value from which the sequence will be generatedCopyright © 2018 Pegasystems Inc. All Rights Reserved.