@@ -0,0 +1,1680 @@
+/*%0A * Licensed to Elasticsearch under one or more contributor%0A * license agreements. See the NOTICE file distributed with%0A * this work for additional information regarding copyright%0A * ownership. Elasticsearch licenses this file to you under%0A * the Apache License, Version 2.0 (the %22License%22); you may%0A * not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0Apackage org.elasticsearch.client;%0A%0Aimport org.elasticsearch.common.unit.TimeValue;%0A%0A/**%0A * A base request for any requests that supply timeouts.%0A *%0A * Please note, any requests that use a ackTimeout should set timeout as they%0A * represent the same backing field on the server.%0A */%0Apublic class TimedRequest implements Validatable %7B%0A%0A    private TimeValue timeout;%0A    private TimeValue masterTimeout;%0A%0A    public void setTimeout(TimeValue timeout) %7B%0A        this.timeout = timeout;%0A%0A    %7D%0A%0A    public void setMasterTimeout(TimeValue masterTimeout) %7B%0A        this.masterTimeout = masterTimeout;%0A    %7D%0A%0A    /**%0A     * Returns the request timeout%0A     */%0A    public TimeValue timeout() %7B%0A        return timeout;%0A    %7D%0A%0A    /**%0A     * Returns the timeout for the request to be completed on the master node%0A     */%0A    public TimeValue masterNodeTimeout() %7B%0A        return masterTimeout;%0A    %7D%0A%7D%0A

create base timed request class (#33216)