tuweni / org.apache.tuweni.plumtree / EphemeralPeerRepository

EphemeralPeerRepository

class EphemeralPeerRepository : PeerRepository (source)

In-memory peer repository.

Constructors

<init>

In-memory peer repository.

EphemeralPeerRepository()

Functions

addEager

fun addEager(peer: Peer!): Unit

considerNewPeer

fun considerNewPeer(peer: Peer!): Unit

eagerPushPeers

fun eagerPushPeers(): MutableCollection<Peer!>!

lazyPushPeers

fun lazyPushPeers(): MutableCollection<Peer!>!

moveToEager

fun moveToEager(peer: Peer!): Unit

moveToLazy

fun moveToLazy(peer: Peer!): Boolean

peers

fun peers(): MutableList<Peer!>!

removePeer

fun removePeer(peer: Peer!): Unit