|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use KBucketTrimmer | |
---|---|
net.i2p.kademlia | This is a major rewrite of KBucket, KBucketSet, and KBucketImpl from net.i2p.router.networkdb.kademlia. |
org.klomp.snark.dht |
Uses of KBucketTrimmer in net.i2p.kademlia |
---|
Classes in net.i2p.kademlia that implement KBucketTrimmer | |
---|---|
class |
RandomIfOldTrimmer<T extends SimpleDataStructure>
Removes a random element, but only if the bucket hasn't changed in 5 minutes. |
class |
RandomTrimmer<T extends SimpleDataStructure>
Removes a random element. |
class |
RejectTrimmer<T extends SimpleDataStructure>
Removes nothing and always rejects the add. |
Constructors in net.i2p.kademlia with parameters of type KBucketTrimmer | |
---|---|
KBucketImpl(I2PAppContext context,
int begin,
int end,
int max,
KBucketTrimmer trimmer)
All entries in this bucket will have at least one bit different from us in the range [begin, end] inclusive. |
|
KBucketSet(I2PAppContext context,
T us,
int max,
int b,
KBucketTrimmer trimmer)
Use the supplied trim strategy. |
Uses of KBucketTrimmer in org.klomp.snark.dht |
---|
Classes in org.klomp.snark.dht that implement KBucketTrimmer | |
---|---|
(package private) class |
KBTrimmer
Removes an element older than 15 minutes, but only if the bucket hasn't changed in 5 minutes. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |