Code example for AtomicLong

Methods: decrementAndGet

0
        this.payload = payload;
    } 
 
    @PreDestroy 
    public void onSessionDestruction(){ 
        INSTANCE_COUNT.decrementAndGet();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java