{"action":"closed","issue":{"url":"https://api.github.com/repos/XeroAPI/Xero-Java/issues/72","repository_url":"https://api.github.com/repos/XeroAPI/Xero-Java","labels_url":"https://api.github.com/repos/XeroAPI/Xero-Java/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/XeroAPI/Xero-Java/issues/72/comments","events_url":"https://api.github.com/repos/XeroAPI/Xero-Java/issues/72/events","html_url":"https://github.com/XeroAPI/Xero-Java/issues/72","id":301654479,"node_id":"MDU6SXNzdWUzMDE2NTQ0Nzk=","number":72,"title":"Is the Xero-Java library thread safe?","user":{"login":"gtod","id":7199143,"node_id":"MDQ6VXNlcjcxOTkxNDM=","avatar_url":"https://avatars0.githubusercontent.com/u/7199143?v=4","gravatar_id":"","url":"https://api.github.com/users/gtod","html_url":"https://github.com/gtod","followers_url":"https://api.github.com/users/gtod/followers","following_url":"https://api.github.com/users/gtod/following{/other_user}","gists_url":"https://api.github.com/users/gtod/gists{/gist_id}","starred_url":"https://api.github.com/users/gtod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtod/subscriptions","organizations_url":"https://api.github.com/users/gtod/orgs","repos_url":"https://api.github.com/users/gtod/repos","events_url":"https://api.github.com/users/gtod/events{/privacy}","received_events_url":"https://api.github.com/users/gtod/received_events","type":"User","site_admin":false},"labels":[{"id":918730964,"node_id":"MDU6TGFiZWw5MTg3MzA5NjQ=","url":"https://api.github.com/repos/XeroAPI/Xero-Java/labels/discussion","name":"discussion","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-02T05:04:00Z","updated_at":"2018-11-26T17:54:55Z","closed_at":"2018-11-26T17:54:55Z","author_association":"CONTRIBUTOR","body":"Hi there,\r\n\r\nWe have been happily using Xero-Java for several weeks now in a backend application that will serve web requests and, at least for some of those requests, talk to Xero to make/view invoices and payments etc.  It's a private app.\r\n\r\nSo we are in a position to make a single `XeroClient` instance and have it shared across all our web requests which will run in multiple threads.\r\n\r\nHence the question.  Is the Xero-Java library thread safe?  Or should we make a new `XeroClient` instance inside each request that needs to talk to Xero?\r\n\r\nFollowup question: If we can use just a single long lived `XeroClient` instance does the library ensure the connection is kept alive under the covers or might it just timeout or disconnect at some point?\r\n\r\nFYI @JesseSchalken\r\n"}}
{"actor":{"display_login":"SidneyAllen"}}