Increments the waiting request for the provided browser name. This call creates a unique statistics for the
provided browser name it does not exists.

@param browserName
Name of the browser.
347836
public void incrementWaitingRequests(String browserName) {
        logger.entering(browserName);
        validateBrowserName(browserName);
        BrowserStatistics lStatistics = createStatisticsIfNotPresent(browserName);
        lStatistics.incrementWaitingRequests();
        logger.exiting();
    }
570686
public void pause(String queueName) {
        try {
            getQueueControl(queueName).pause();
        } catch (Exception e) {
            throw new AsyncException(e);
        }
    }
1194866
public final static void addCookie(HttpServletResponse response, String name, String value, int maxAgeInSeconds) {
		addCookie(response, name, value, maxAgeInSeconds, "/", null);
	}
190651
public static List<SupportedBrowser> toSupportedBrowsers(String[] browserNames) {
		List<SupportedBrowser> browsers = new ArrayList<>();
		for (String browserName : browserNames) {
			SupportedBrowser browser = SupportedBrowser.valueOf(browserName.toUpperCase());
			if(!browsers.contains(browser))
				browsers.add(browser);
		}
		return browsers;
	}
806041
protected void setInnerName(String innerName) {

        m_innerName = innerName;
        if (m_innerName != null) {
            m_typeName = createTypeName(innerName);
        }
    }
915727
protected void assign(String name, Object value) {
        KeyWords.check(name);
        RequestContext.getValues().put(name, value);
    }
274955
public Iterator<String> getUrlNameSequence(String baseName) {

        String translatedTitle = OpenCms.getResourceManager().getFileTranslator().translateResource(baseName).replace(
            "/",
            "-");
        return new CmsNumberSuffixNameSequence(translatedTitle);
    }
1208291
public int waitForWindowPageChanged(String windowName) {
    if (getScopeServices().getConnection() == null) {
      throw new CommunicationException(
          "waiting for a window failed because Opera is not connected.");
    }

    return getScopeServices().waitForDesktopWindowPageChanged(windowName,
                                                              OperaIntervals.WINDOW_EVENT_TIMEOUT
                                                                  .getMs());
  }
62729
protected void addNameToApplicationMap(String name) {
        String appName = getApplicationName();

        // If it is a base metric, the name will be null
        if (appName == null)
            return;
        ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
        if (list == null) {
            ConcurrentLinkedQueue<String> newList = new ConcurrentLinkedQueue<String>();
            list = applicationMap.putIfAbsent(appName, newList);
            if (list == null)
                list = newList;
        }
        list.add(name);
    }
333984
public void setUsername(String username) {
        for (Authentication auth : authentications.values()) {
            if (auth instanceof HttpBasicAuth) {
                ((HttpBasicAuth) auth).setUsername(username);
                return;
            }
        }
        throw new RuntimeException("No HTTP basic authentication configured!");
    }
351981
public void incrementRetryCount(String clientId)
	{
		Integer retryCount = this.retryCounts.get(clientId);
		this.retryCounts.put(clientId, retryCount == null ? 1 : retryCount + 1);
	}
998582
public void updateInfoUrlAndName(String url, String name) {
    this.info.url = url;
    this.info.name = name;
  }
191403
public static final void setServerName(String name)
    {
        if (tc.isDebugEnabled())
            Tr.debug(tc, "setServerName", name);

        // Store the server name.
        serverName = name;
    }
430397
public static void incr(String counterName) {
    org.apache.heron.api.metric.GlobalMetrics.incr(counterName);
  }
29132
public static void setUsername(final String username) {
        if (username == null) {
            throw new AuthenticationException("Username can not be null");
        }

        if (!username.equals(Twilio.username)) {
            Twilio.invalidate();
        }

        Twilio.username = username;
    }
703272
void increment() {
        long id = rand.nextInt(config.tuples);
        long toIncrement = rand.nextInt(5); // 0 - 4

        try {
            client.callProcedure(new CMCallback(), "Increment", toIncrement, id);
        }
        catch (IOException e) {
            // This is not ideal error handling for production, but should be
            // harmless in a benchmark like this
            try { Thread.sleep(50); } catch (Exception e2) {}
        }
    }
318929
public void addName(String name)
   {
      if (names.contains(name))
      {
         throw new IllegalArgumentException("already contains: " + name);
      }
      indexes.add(name);
      names.add(name);
      dirty = true;
   }