devp2p / org.apache.tuweni.devp2p.v5.topic / TopicTable

TopicTable

class TopicTable (source)

Constructors

<init>

TopicTable(tableCapacity: Int = MAX_TABLE_CAPACITY, queueCapacity: Int = MAX_ENTRIES_PER_TOPIC)

Functions

clear

fun clear(): Unit

contains

fun contains(topic: Topic): Boolean

getNodes

fun getNodes(topic: Topic): List<Bytes>

isEmpty

fun isEmpty(): Boolean

put

fun put(topic: Topic, enr: Bytes): Long

Puts a topic in a table