tuweni / org.apache.tuweni.rlpx / WireConnectionRepository / asIterable

asIterable

abstract fun asIterable(): MutableIterable<WireConnection!>! (source)

Provides a view of the wire connections as an iterable. There is no guarantee of sorting wire connections.

Return
MutableIterable<WireConnection!>!: an Iterable object allowing to traverse all wire connections held by this repository

abstract fun asIterable(identifier: SubProtocolIdentifier!): MutableIterable<WireConnection!>! (source)

Provides a subset of wire connections with a particular capabilities.

Parameters

identifier - SubProtocolIdentifier!: the subprotocol those connections must use

Return
MutableIterable<WireConnection!>!: an Iterable object allowing to traverse all wire connections held by this repository