tuweni / org.apache.tuweni.eth.crawler / RelationalPeerRepository / addListener

addListener

open fun addListener(listener: (Peer) -> Unit): Unit (source)

Adds a listener to the repository, which will consume peer entries whenever they are added to the repository.