All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blazemeter.taurus.junit.generator.Counter Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
package com.blazemeter.taurus.junit.generator;

import com.blazemeter.taurus.junit.api.ThreadCounter;

public class Counter implements ThreadCounter {

    private int activeThreads = 0;

    public synchronized void incrementActiveThreads() {
        activeThreads++;
    }

    public synchronized void decrementActiveThreads() {
        activeThreads--;
    }

    public synchronized int getActiveThreads() {
        return activeThreads;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy