I'm using google-client api for spreadsheet.
I get a time out after 20 seconds. How can i set the timeout to a custom value?
private Sheets initService(GoogleCredential credential) throws GeneralSecurityException, IOException {
final HttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();
final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();
return new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential)
.setApplicationName("my_app")
.build();
}
should i set it in the HttpTransport
?