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