CircuitState currentState() {
        if (state.get() == CircuitState.OPEN) {
            long now = System.currentTimeMillis();
            long timeout = time + openTimeout;
            if (now > timeout) {
                return halfOpenCircuit();
            }
            return state.get();
        } else {
            return state.get();
        }
    }
CircuitState currentState ( ) { if ( state . get ( ) == CircuitState . OPEN ) { long now = System . currentTimeMillis ( ) ; long timeout = time + openTimeout ; if ( now > timeout ) { return halfOpenCircuit ( ) ; } return state . get ( ) ; } else { return state . get ( ) ; } }
@return The current state