public interface SubscriberSequencerProvider
PartitionSequencer
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSetSequence(long expect,
long update,
int partitionId)
Atomically sets the value of sequence number for the partition.
|
long |
getSequence(int partitionId)
Returns partition's current sequence number.
|
void |
reset(int partitionId)
Resets the sequence number for the supplied
partition to zero. |
void |
resetAll()
Like
reset(int) but this method resets all partition sequences. |
boolean compareAndSetSequence(long expect, long update, int partitionId)
expect
- the expected sequence.update
- the new sequence.partitionId
- ID of the partition.true
if Compare-and-Set operation
is successful, otherwise returns false
.long getSequence(int partitionId)
partitionId
- ID of the partition.void reset(int partitionId)
partition
to zero.partitionId
- ID of the partition.void resetAll()
reset(int)
but this method resets all partition sequences.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.