question

Super Admin avatar image
Super Admin asked

Java SDK: RestClient Thread Safe?

I'm currently using a Singleton of the RestClient for all RingCentral requests. I did this after having issues instantiating and authentication a RestClient for each request:

https://forums.developers.ringcentral.com/questions/7503/java-sdk-subscription-refresh-causing-401-error.html

Is this an acceptable approach? If not, is there a recommended pattern to follow for server applications?

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

0 Answers

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys