class RoutingTable
(source)
RoutingTable(selfEnr: Bytes) |
val size: Int |
fun add(enr: Bytes): Unit |
|
fun clear(): Unit |
|
fun distanceToSelf(targetId: Bytes): Int |
|
fun evict(enr: Bytes): Boolean |
|
fun getSelfEnr(): Bytes |
|
fun isEmpty(): Boolean |
|
fun nearest(targetId: Bytes, limit: Int = BUCKET_SIZE): List<Bytes> |
|
fun nodesOfDistance(distance: Int): List<Bytes> |
|
fun random(): Bytes |