public interface PartitionSequencer
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareAndSetSequence(long expect,
long update)
Atomically sets the value of sequence number for the partition.
|
long |
getSequence()
Returns current sequence number of the partition.
|
long |
nextSequence()
Returns next number in sequence for the partition.
|
void |
reset()
Resets
PartitionSequencer. |
void |
setSequence(long update)
Sets the current sequence number for the partition.
|
long nextSequence()
void setSequence(long update)
update - new sequence number.boolean compareAndSetSequence(long expect,
long update)
expect - the expected sequence.update - the new sequence.true if Compare-and-Set operation is successful, otherwise returns false.long getSequence()
void reset()
PartitionSequencer.
After this call returns sequence generation will be start from zero.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.