Skip to content

Commit c0efa8c

Browse files
committed
---
yaml --- r: 6253 b: refs/heads/tswast-patch-1 c: 6423879 h: refs/heads/master i: 6251: d35bbce
1 parent b3a4e02 commit c0efa8c

2 files changed

Lines changed: 39 additions & 1 deletion

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: 51bfef6d69e64dc4608d729c6121e926eae088d3
60+
refs/heads/tswast-patch-1: 6423879951de89d3deade718275d9a6545360947
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-core/src/main/java/com/google/gcloud/ServiceOptions.java

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,30 +338,52 @@ protected static String getAppEngineProjectId() {
338338

339339
protected abstract Set<String> scopes();
340340

341+
/**
342+
* Returns the project id.
343+
*/
341344
public String projectId() {
342345
return projectId;
343346
}
344347

348+
/**
349+
* Returns the service host.
350+
*/
345351
public String host() {
346352
return host;
347353
}
348354

355+
/**
356+
* Returns the transport factory.
357+
*/
349358
public HttpTransportFactory httpTransportFactory() {
350359
return httpTransportFactory;
351360
}
352361

362+
/**
363+
* Returns the authentication credentials.
364+
*/
353365
public AuthCredentials authCredentials() {
354366
return authCredentials;
355367
}
356368

369+
/**
370+
* Returns configuration parameters for request retries.
371+
*/
357372
public RetryParams retryParams() {
358373
return retryParams != null ? retryParams : RetryParams.noRetries();
359374
}
360375

376+
/**
377+
* Returns the factory for rpc services.
378+
*/
361379
public ServiceRpcFactory<ServiceRpcT, OptionsT> serviceRpcFactory() {
362380
return serviceRpcFactory;
363381
}
364382

383+
/**
384+
* Returns a request initializer responsible for initializing requests according to service
385+
* options.
386+
*/
365387
public HttpRequestInitializer httpRequestInitializer() {
366388
HttpTransport httpTransport = httpTransportFactory.create();
367389
final HttpRequestInitializer baseRequestInitializer =
@@ -380,6 +402,22 @@ public void initialize(HttpRequest httpRequest) throws IOException {
380402
};
381403
}
382404

405+
/**
406+
* Returns the timeout in milliseconds to establish a connection. 0 is an infinite timeout, a
407+
* negative number is the default value (20000).
408+
*/
409+
public int connectTimeout() {
410+
return connectTimeout;
411+
}
412+
413+
/**
414+
* Returns the timeout in milliseconds to read from an established connection. 0 is an infinite
415+
* timeout, a negative number is the default value (20000).
416+
*/
417+
public int readTimeout() {
418+
return readTimeout;
419+
}
420+
383421
protected int baseHashCode() {
384422
return Objects.hash(projectId, host, httpTransportFactory, authCredentials, retryParams,
385423
serviceRpcFactory);

0 commit comments

Comments
 (0)