public class PSyncUserPrefixes extends Object
| Constructor and Description |
|---|
PSyncUserPrefixes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUserNode(Name prefix)
Add a user node for synchronization based on the prefix Name, and
initialize the sequence number to zero.
|
int |
getSequenceNo(Name prefix)
Return the current sequence number of the given prefix.
|
int |
getSequenceNoOrZero(Name prefix)
Return the current sequence number of the given prefix, or zero if not found.
|
boolean |
isUserNode(Name prefix)
Check if the prefix is in prefixes_.
|
void |
removeUserNode(Name prefix)
Remove the user node from synchronization.
|
boolean |
updateSequenceNo(Name prefix,
int sequenceNo,
int[] oldSequenceNo)
Update prefixes_ with the given prefix and sequence number.
|
public final boolean isUserNode(Name prefix)
prefix - The prefix to check.public final int getSequenceNo(Name prefix)
prefix - The prefix for the sequence number.public final int getSequenceNoOrZero(Name prefix)
prefix - The prefix for the sequence number.public final boolean addUserNode(Name prefix)
prefix - The prefix Name of the user node to be added.public final void removeUserNode(Name prefix)
prefix - The prefix Name of the user node to be removed.public final boolean updateSequenceNo(Name prefix, int sequenceNo, int[] oldSequenceNo)
prefix - The prefix of the update.sequenceNo - The sequence number of the update.oldSequenceNo - This sets oldSequenceNo[0] to the old sequence number
for the prefix. If this method returns true and oldSequenceNo[0] is not
zero, the caller can remove the old prefix from the IBLT.Copyright © 2019. All rights reserved.