Title: Unclear in docs if config can be reused and relevant classes are thread safe. · Issue #3191 · googleapis/google-cloud-java · GitHub
Open Graph Title: Unclear in docs if config can be reused and relevant classes are thread safe. · Issue #3191 · googleapis/google-cloud-java
X Title: Unclear in docs if config can be reused and relevant classes are thread safe. · Issue #3191 · googleapis/google-cloud-java
Description: E.g.: Can I reuse parts spanding more requests like the response of the getServcie() and have that injected in another class? Are these classes thread safe or should a developer always create a new Translate object? @Inject private Trans...
Open Graph Description: E.g.: Can I reuse parts spanding more requests like the response of the getServcie() and have that injected in another class? Are these classes thread safe or should a developer always create a new...
X Description: E.g.: Can I reuse parts spanding more requests like the response of the getServcie() and have that injected in another class? Are these classes thread safe or should a developer always create a new...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/3191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unclear in docs if config can be reused and relevant classes are thread safe.","articleBody":"E.g.: Can I reuse parts spanding more requests like the response of the getServcie() and have that injected in another class? Are these classes thread safe or should a developer always create a new Translate object?\r\n\r\n```\r\n@Inject\r\nprivate Translate translate; \r\n// Somewhere else defined and injected like\r\n// Translate translate = TranslateOptions.newBuilder().setApiKey(googleApiKey).build().getService();\r\n...\r\npublic void doTranslation(){\r\n Translation translation = translate.translate(\r\n \"Some text here\",\r\n Translate.TranslateOption.sourceLanguage(sourceLanguage),\r\n Translate.TranslateOption.targetLanguage(targetLanguage));\r\n}\r\n```","author":{"url":"https://github.com/timothyTheCoder","@type":"Person","name":"timothyTheCoder"},"datePublished":"2018-04-25T09:35:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3191/google-cloud-java/issues/3191"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4df9dd1b-9378-8688-2826-95690d277718 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A38A:37D99:1CB9093:289EAEC:6A4CCCC6 |
| html-safe-nonce | 1e12b56a74b9ee5c1e5d613a8a6c55b29f6b8e7ea4c46a8acc467ef3147537d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzhBOjM3RDk5OjFDQjkwOTM6Mjg5RUFFQzo2QTRDQ0NDNiIsInZpc2l0b3JfaWQiOiI2NzY4NzEwMTE3NzIwMTE2NDIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 71262b151876e219aac7c78a988c6b0f7e070f490f3a1150763db6df77ad96bb |
| hovercard-subject-tag | issue:317550066 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/3191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2940458213fa482f73e2170be7e5f8bda62d80137a0efc86424b3d41e2783882/googleapis/google-cloud-java/issues/3191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2940458213fa482f73e2170be7e5f8bda62d80137a0efc86424b3d41e2783882/googleapis/google-cloud-java/issues/3191 |
| og:image:alt | E.g.: Can I reuse parts spanding more requests like the response of the getServcie() and have that injected in another class? Are these classes thread safe or should a developer always create a new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timothyTheCoder |
| hostname | github.com |
| expected-hostname | github.com |
| None | ee8a9d18044a05fe2d57b9ae797da38c8be34effb03f015f7c42e94770d28a1b |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f84814acc6f036583fd43463f5847a846243d2a4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width