code: protected void checkAddress() {
      if (localAddress == null) {
        check++;
        if (check > 1000 && System.currentTimeMillis() - lastReset > 15000) {
          resetLocalAddress(null);
        }
      }
    }
docs: Checks whether the local cluster address needs to be updated.