docs: public void addPeerDiscovery(PeerDiscovery peerDiscovery) {
          lock.lock();
          try {
              if (getMaxConnections() == 0)
                  setMaxConnections(DEFAULT_CONNECTIONS);
              peerDiscoverers.add(peerDiscovery);
          } finally {
              lock.unlock();
          }
      }