Code example for AtomicReference

Methods: get

0
    } 
    public boolean getLastWasFailed() { 
        return isResponseOkay(getLastStatus()); 
    } 
    public Object getLastStatus() {
        return lastStatus.get();
    } 
    public long getLastTime() { 
        return lastTime.get();
    } 
    /** result code (int) or exception */ 
    public Object getLastFailure() {
        return lastFailure.get();
    } 
     
    public void onFailure(Object problem) {
        if (log != null) { 
            log.warn("Detected failure in monitor accessing "+getUrl()+": "+problem);
        } 
        this.problem = problem;
Connect your IDE to all the code out there  Get Codota for Java