Code example for AtomicDouble

Methods: get

    public Number getValue(int pollerIdx) {
        // we return the actual value at the time of the call and not a reference 
        // to the atomic number so the value doesn't change and is also available to jmx viewers 
        return number.get();
Contextual code suggestions in your IDE  Get Codota for Java