Interface PeerManagerFacade

All Superinterfaces:
Service
All Known Implementing Classes:
DummyPeerManagerFacade, PeerManagerFacadeImpl

public interface PeerManagerFacade extends Service
Manage peer references and keep them up to date so that when asked for peers, it can provide appropriate peers according to the criteria provided. This includes periodically queueing up outbound messages to the peers to test them.
  • Method Details

    • getPeersByCapability

      Set<Hash> getPeersByCapability(char capability)
    • countPeersByCapability

      int countPeersByCapability(char capability)
    • setCapabilities

      void setCapabilities(Hash peer, String caps)
    • removeCapabilities

      void removeCapabilities(Hash peer)
    • selectRandomByCapability

      Hash selectRandomByCapability(char capability)