net.named_data.jndn.sync
public class DigestTree extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DigestTree.Node |
Constructor and Description |
---|
DigestTree() |
Modifier and Type | Method and Description |
---|---|
int |
find(String dataPrefix,
long sessionNo) |
DigestTree.Node |
get(int i) |
String |
getRoot()
Get the root digest.
|
int |
size() |
boolean |
update(String dataPrefix,
long sessionNo,
long sequenceNo)
Update the digest tree and recompute the root digest.
|
public final boolean update(String dataPrefix, long sessionNo, long sequenceNo)
dataPrefix
- The name prefix. This is encoded as UTF-8 to digest.sessionNo
- The session number.sequenceNo
- The new sequence number.public final int find(String dataPrefix, long sessionNo)
public final int size()
public final DigestTree.Node get(int i)
public final String getRoot()
Copyright © 2016. All rights reserved.