Code example for AtomicLong

Methods: decrementAndGet

0
        } 
    } 
 
    @Override 
    public void collect(Timer.TimerResult timer) { 
        numActive.decrementAndGet();
    } 
 
    @Override 
    public Timer.TimerKey getKey() { 
        return key; 
    } 
 
    @Override 
    public void addStatistics(ReportLine line) {
        line.column("num. active", numActive.toString());
        line.column("max. active", maxActive.toString());
    } 
}