File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3030public class BigQueryOptions extends ServiceOptions <BigQuery , BigQueryOptions > {
3131
3232 private static final String API_SHORT_NAME = "BigQuery" ;
33+ private static final int DEFAULT_READ_API_TIME_OUT = 60000 ;
3334 private static final String BIGQUERY_SCOPE = "https://www.googleapis.com/auth/bigquery" ;
3435 private static final Set <String > SCOPES = ImmutableSet .of (BIGQUERY_SCOPE );
3536 private static final long serialVersionUID = -2437598817433266049L ;
@@ -113,7 +114,7 @@ public TransportOptions getDefaultTransportOptions() {
113114 }
114115
115116 public static HttpTransportOptions getDefaultHttpTransportOptions () {
116- return HttpTransportOptions .newBuilder ().build ();
117+ return HttpTransportOptions .newBuilder ().setReadTimeout ( DEFAULT_READ_API_TIME_OUT ). build ();
117118 }
118119
119120 @ Override
You can’t perform that action at this time.
0 commit comments