Code example for AtomicBoolean

Methods: get

0
    } 
     
    @Override 
    public void run() { 
        eventManager.add(event);
        if (active.get()) {
            this.result = frequence;
        } else { 
            this.result = -1;
             
        } 
    } 
     
}