Code example for AtomicInteger

Methods: decrementAndGetset

0
        return this.referenceCount.incrementAndGet();
    } 
 
    private int decreaseReferece(){ 
 
        int count = this.referenceCount.decrementAndGet();
        if(count<0){
            this.referenceCount.set(0);
        } 
        log.debug("=============referenceCount:" + this.referenceCount.get());
        return this.referenceCount.get();
    } 
 
    private JMXClient(String hostName, int port, String userName, String password) throws JMXClientException {
        this.hostName = hostName;
        this.port = port;
        this.userName = userName;
        this.password = password;
        try { 
            this.address =
Contextual code suggestions in your IDE  Get Codota for Java