tuweni / org.apache.tuweni.ethclient / WireConnectionPeerRepositoryAdapter

WireConnectionPeerRepositoryAdapter

class WireConnectionPeerRepositoryAdapter : WireConnectionRepository (source)

Class bridging the subprotocols and the connection repository of the RLPx service, updating the Ethereum peer repository with information.

Constructors

<init>

Class bridging the subprotocols and the connection repository of the RLPx service, updating the Ethereum peer repository with information.

WireConnectionPeerRepositoryAdapter(peerRepository: EthereumPeerRepository)

Properties

peerRepository

val peerRepository: EthereumPeerRepository

Functions

add

fun add(wireConnection: WireConnection): String

addConnectionListener

fun addConnectionListener(listener: Listener): Unit

addDisconnectionListener

fun addDisconnectionListener(listener: Listener): Unit

asIterable

fun asIterable(): Iterable<WireConnection>
fun asIterable(identifier: SubProtocolIdentifier): Iterable<WireConnection>

close

fun close(): Unit

get

fun get(id: String): WireConnection?
fun get(ethereumConnection: EthereumConnection): WireConnection

listenToStatus

fun listenToStatus(conn: WireConnection, status: Status): Unit