Code example for AtomicDouble

Methods: get

0
 
    @Override 
    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();
    } 
}