Code example for AtomicLong

Methods: getset

0
    } 
 
    @Override 
    public void register(Timer timer) {
        long active = numActive.incrementAndGet();
        if (maxActive.get() < active) {
            maxActive.set(active);
        } 
    } 
 
    @Override 
    public void collect(Timer.TimerResult timer) { 
        numActive.decrementAndGet();
    } 
 
    @Override 
    public Timer.TimerKey getKey() { 
        return key; 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE