KBucketTrimmer<NID>class KBTrimmer extends Object implements KBucketTrimmer<NID>
| Constructor | Description |
|---|---|
KBTrimmer(I2PAppContext ctx,
int max) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
trim(KBucket<NID> kbucket,
NID toAdd) |
Called from add() just before adding the entry.
|
public KBTrimmer(I2PAppContext ctx, int max)
public boolean trim(KBucket<NID> kbucket, NID toAdd)
KBucketTrimmertrim in interface KBucketTrimmer<NID>kbucket - the kbucket that is now too big