|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KBucket<T extends SimpleDataStructure>
Group, without inherent ordering, a set of keys a certain distance away from a local key, using XOR as the distance metric Refactored from net.i2p.router.networkdb.kademlia
Method Summary | |
---|---|
boolean |
add(T key)
Add the peer to the bucket |
void |
clear()
|
Set<T> |
getEntries()
Retrieve all routing table entries stored in the bucket |
void |
getEntries(SelectionCollector<T> collector)
|
int |
getKeyCount()
Number of keys already contained in this kbucket |
long |
getLastChanged()
The last-changed timestamp |
int |
getRangeBegin()
Lowest order high bit for difference keys. |
int |
getRangeEnd()
Highest high bit for the difference keys. |
boolean |
remove(T key)
Remove the key from the bucket |
void |
setLastChanged()
Update the last-changed timestamp to now. |
Method Detail |
---|
int getRangeBegin()
int getRangeEnd()
int getKeyCount()
boolean add(T key)
boolean remove(T key)
void setLastChanged()
long getLastChanged()
Set<T> getEntries()
void getEntries(SelectionCollector<T> collector)
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |