tuweni / org.apache.tuweni.scuttlebutt.discovery / ScuttlebuttLocalDiscoveryService / addListener

addListener

open fun addListener(listener: Consumer<LocalIdentity!>!): Unit (source)

Adds a listener to be notified when the service receives UDP packets that match Scuttlebutt identities. Listeners may be added at any time during the lifecycle of the service

Parameters

listener - Consumer<LocalIdentity!>!: the listener to add