class KBTrimmer extends Object implements KBucketTrimmer<NID>
| Constructor and Description |
|---|
KBTrimmer(I2PAppContext ctx,
int max) |
| Modifier and Type | Method and 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