|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xlattice.protocol.xlkad.KBucket
public class KBucket
A KBucket is a queue of up to K contacts. When a communication is received from a XLKad node, the contact is moved to the end of the queue. Under certain circumstances contacts are removed from the front of the queue. At any time a contact may be added at the end of the list. It must not be possible to add a contact more than once.
Field Summary | |
---|---|
static int |
K
|
Constructor Summary | |
---|---|
KBucket()
|
Method Summary | |
---|---|
int |
size()
Returns the number of contacts in the bucket, but is not synchronized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int K
Constructor Detail |
---|
public KBucket()
Method Detail |
---|
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |