Package com.usatiuk.kleppmanntree
Interface PeerInterface<PeerIdT extends Comparable<PeerIdT>>
- Type Parameters:
PeerIdT
- the type of the peer ID
- All Known Implementing Classes:
JKleppmannTreePeerInterface
public interface PeerInterface<PeerIdT extends Comparable<PeerIdT>>
Interface providing access to a list of known peers.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of all known peers.Returns the ID of the current peer.
-
Method Details
-
getSelfId
PeerIdT getSelfId()Returns the ID of the current peer.- Returns:
- the ID of the current peer
-
getAllPeers
Collection<PeerIdT> getAllPeers()Returns a collection of all known peers.- Returns:
- a collection of all known peers
-