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. |
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.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.