interface PeerRepository
(source)
Repository of active peers associating with a gossip tree.
abstract fun addEager(peer: Peer): Unit |
|
abstract fun considerNewPeer(peer: Peer): Unit
Proposes a peer as a new peer. |
|
abstract fun eagerPushPeers(): MutableCollection<Peer>
Provides the list of all eager peers connected. |
|
abstract fun lazyPushPeers(): MutableCollection<Peer>
Provides the list of all lazy peers connected. |
|
abstract fun moveToEager(peer: Peer): Unit
Moves a peer to the list of eager peers. |
|
abstract fun moveToLazy(peer: Peer): Boolean
Moves a peer to the list of lazy peers |
|
abstract fun peers(): MutableList<Peer>
Provides the list of all the peers connected. |
|
abstract fun removePeer(peer: Peer): Unit
Removes a peer from the repository |
class EphemeralPeerRepository : PeerRepository
In-memory peer repository. |