Skip to content

Commit f7891a8

Browse files
authored
---
yaml --- r: 7873 b: refs/heads/tswast-patch-1 c: be2c36f h: refs/heads/master i: 7871: 1431a6e
1 parent c93df34 commit f7891a8

3 files changed

Lines changed: 2 additions & 104 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 007f340dd82abf4b8f1a66df9351abe9cb53d58f
60+
refs/heads/tswast-patch-1: be2c36f9defafa3392a305ede15421e337dbd4af
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/google-cloud-core/src/main/java/com/google/cloud/GrpcServiceOptions.java

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -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 &lt; 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 &lt; 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
*/

branches/tswast-patch-1/google-cloud-core/src/main/java/com/google/cloud/HttpServiceOptions.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ protected Builder(HttpServiceOptions<ServiceT, ServiceRpcT, OptionsT> options) {
9898
@Override
9999
protected abstract HttpServiceOptions<ServiceT, ServiceRpcT, OptionsT> build();
100100

101+
@Override
101102
@SuppressWarnings("unchecked")
102103
protected B self() {
103104
return (B) this;
104105
}
105106

106-
107107
/**
108108
* Sets the HTTP transport factory.
109109
*
@@ -114,7 +114,6 @@ public B setHttpTransportFactory(HttpTransportFactory httpTransportFactory) {
114114
return self();
115115
}
116116

117-
118117
/**
119118
* Sets the timeout in milliseconds to establish a connection.
120119
*
@@ -127,7 +126,6 @@ public B setConnectTimeout(int connectTimeout) {
127126
return self();
128127
}
129128

130-
131129
/**
132130
* Sets the timeout in milliseconds to read data from an established connection.
133131
*
@@ -153,15 +151,13 @@ protected HttpServiceOptions(
153151
readTimeout = builder.readTimeout;
154152
}
155153

156-
157154
/**
158155
* Returns the HTTP transport factory.
159156
*/
160157
public HttpTransportFactory getHttpTransportFactory() {
161158
return httpTransportFactory;
162159
}
163160

164-
165161
/**
166162
* Returns a request initializer responsible for initializing requests according to service
167163
* options.
@@ -187,14 +183,6 @@ public void initialize(HttpRequest httpRequest) throws IOException {
187183
};
188184
}
189185

190-
/**
191-
* Returns the timeout in milliseconds to establish a connection. 0 is an infinite timeout, a
192-
* negative number is the default value (20000).
193-
*/
194-
public int connectTimeout() {
195-
return getConnectTimeout();
196-
}
197-
198186
/**
199187
* Returns the timeout in milliseconds to establish a connection. 0 is an infinite timeout, a
200188
* negative number is the default value (20000).
@@ -203,7 +191,6 @@ public int getConnectTimeout() {
203191
return connectTimeout;
204192
}
205193

206-
207194
/**
208195
* Returns the timeout in milliseconds to read from an established connection. 0 is an infinite
209196
* timeout, a negative number is the default value (20000).

0 commit comments

Comments
 (0)