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