public void setTimeout(long timeout) {
        if (timeout > 1000000000 || timeout < 0)
            throw new IllegalArgumentException("'timeout' must be positive and smaller than 1000000000 ms but was " + timeout);
        this.timeout = timeout;
    }
Sets the number of milliseconds to wait for a response from a search backend
before time out. Default is 500 ms.
container-search/src/main/java/com/yahoo/search/Query.java