Code example for AtomicInteger

0
        registerHostNeeded(host);
    } 
 
    private static void registerHostNeeded(String host) {
        if (!timesHostNeeded.containsKey(host)) {
            timesHostNeeded.put(host, new AtomicInteger(0));
        } 
        timesHostNeeded.get(host).incrementAndGet();
    } 
 
    @Override 
    public String getTestName() {
        return testName;
    } 
 
    @Override 
    protected void doInitHost() { 
        CloudHostHolder.setupHost(hostname); 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE