@@ -154,17 +154,6 @@ protected Builder(GrpcServiceOptions<ServiceT, ServiceRpcT, OptionsT> options) {
154154 @ Override
155155 protected abstract GrpcServiceOptions <ServiceT , ServiceRpcT , OptionsT > build ();
156156
157- /**
158- * Sets the scheduled executor factory. This method can be used to provide an user-defined
159- * scheduled executor to execute requests.
160- *
161- * @return the builder
162- */
163- @ Deprecated
164- public B executorFactory (ExecutorFactory <ScheduledExecutorService > executorFactory ) {
165- return setExecutorFactory (executorFactory );
166- }
167-
168157 /**
169158 * Sets the scheduled executor factory. This method can be used to provide an user-defined
170159 * scheduled executor to execute requests.
@@ -176,18 +165,6 @@ public B setExecutorFactory(ExecutorFactory<ScheduledExecutorService> executorFa
176165 return self ();
177166 }
178167
179- /**
180- * Sets the timeout for the initial RPC, in milliseconds. Subsequent calls will use this value
181- * adjusted according to {@link #setTimeoutMultiplier(double)}. Default value is 20000.
182- *
183- * @return the builder
184- * @throws IllegalArgumentException if the provided timeout is < 0
185- */
186- @ Deprecated
187- public B initialTimeout (int initialTimeout ) {
188- return setInitialTimeout (initialTimeout );
189- }
190-
191168 /**
192169 * Sets the timeout for the initial RPC, in milliseconds. Subsequent calls will use this value
193170 * adjusted according to {@link #setTimeoutMultiplier(double)}. Default value is 20000.
@@ -201,18 +178,6 @@ public B setInitialTimeout(int initialTimeout) {
201178 return self ();
202179 }
203180
204- /**
205- * Sets the timeout multiplier. This value is used to compute the timeout for a retried RPC.
206- * Timeout is computed as {@code timeoutMultiplier * previousTimeout}. Default value is 1.5.
207- *
208- * @return the builder
209- * @throws IllegalArgumentException if the provided timeout multiplier is < 0
210- */
211- @ Deprecated
212- public B timeoutMultiplier (double timeoutMultiplier ) {
213- return setTimeoutMultiplier (timeoutMultiplier );
214- }
215-
216181 /**
217182 * Sets the timeout multiplier. This value is used to compute the timeout for a retried RPC.
218183 * Timeout is computed as {@code timeoutMultiplier * previousTimeout}. Default value is 1.5.
@@ -226,18 +191,6 @@ public B setTimeoutMultiplier(double timeoutMultiplier) {
226191 return self ();
227192 }
228193
229- /**
230- * Sets the maximum timeout for a RPC call, in milliseconds. Default value is 100000. If
231- * {@code maxTimeout} is lower than the initial timeout the {@link #setInitialTimeout(int)}
232- * value is used instead.
233- *
234- * @return the builder
235- */
236- @ Deprecated
237- public B maxTimeout (int maxTimeout ) {
238- return setMaxTimeout (maxTimeout );
239- }
240-
241194 /**
242195 * Sets the maximum timeout for a RPC call, in milliseconds. Default value is 100000. If
243196 * {@code maxTimeout} is lower than the initial timeout the {@link #setInitialTimeout(int)}
@@ -265,29 +218,13 @@ protected GrpcServiceOptions(
265218 maxTimeout = builder .maxTimeout <= initialTimeout ? initialTimeout : builder .maxTimeout ;
266219 }
267220
268- /**
269- * Returns a scheduled executor service provider.
270- */
271- @ Deprecated
272- protected ExecutorFactory <ScheduledExecutorService > executorFactory () {
273- return getExecutorFactory ();
274- }
275-
276221 /**
277222 * Returns a scheduled executor service provider.
278223 */
279224 protected ExecutorFactory <ScheduledExecutorService > getExecutorFactory () {
280225 return executorFactory ;
281226 }
282227
283- /**
284- * Returns a builder for API call settings.
285- */
286- @ Deprecated
287- protected UnaryCallSettings .Builder apiCallSettings () {
288- return getApiCallSettings ();
289- }
290-
291228 /**
292229 * Returns a builder for API call settings.
293230 */
@@ -321,15 +258,6 @@ protected ChannelProvider getChannelProvider() {
321258 return builder .build ();
322259 }
323260
324- /**
325- * Returns the timeout for the initial RPC, in milliseconds. Subsequent calls will use this value
326- * adjusted according to {@link #getTimeoutMultiplier()}. Default value is 20000.
327- */
328- @ Deprecated
329- public int initialTimeout () {
330- return getInitialTimeout ();
331- }
332-
333261 /**
334262 * Returns the timeout for the initial RPC, in milliseconds. Subsequent calls will use this value
335263 * adjusted according to {@link #getTimeoutMultiplier()}. Default value is 20000.
@@ -338,15 +266,6 @@ public int getInitialTimeout() {
338266 return initialTimeout ;
339267 }
340268
341- /**
342- * Returns the timeout multiplier. This values is used to compute the timeout for a RPC. Timeout
343- * is computed as {@code timeoutMultiplier * previousTimeout}. Default value is 1.5.
344- */
345- @ Deprecated
346- public double timeoutMultiplier () {
347- return getTimeoutMultiplier ();
348- }
349-
350269 /**
351270 * Returns the timeout multiplier. This values is used to compute the timeout for a RPC. Timeout
352271 * is computed as {@code timeoutMultiplier * previousTimeout}. Default value is 1.5.
@@ -355,14 +274,6 @@ public double getTimeoutMultiplier() {
355274 return timeoutMultiplier ;
356275 }
357276
358- /**
359- * Returns the maximum timeout for a RPC call, in milliseconds. Default value is 100000.
360- */
361- @ Deprecated
362- public int maxTimeout () {
363- return getMaxTimeout ();
364- }
365-
366277 /**
367278 * Returns the maximum timeout for a RPC call, in milliseconds. Default value is 100000.
368279 */
0 commit comments