0

I have recently started using msgraph-sdk for java for creating a syncing service for oneDrive users, files etc. I want to make few calls via batching like getting permissions info for multiple files. Does the sdk support batched calls. If yes, can someone point me to the documentation or some sample code for the same.

Also, in case of throttling errors such as 429 or timeout errors, I want to add a backoff and retry logic to most of the calls. Is there a way to set some config while creating a IGraphServiceClient object to do the retry-backoff logic.

Michael Mainer
  • 3,387
  • 1
  • 13
  • 32
crucifix94
  • 193
  • 2
  • 14
  • These features are under active consideration. https://github.com/microsoftgraph/msgraph-sdk-design. Please watch the repo for developments: https://github.com/microsoftgraph/msgraph-sdk-java – Michael Mainer Oct 15 '18 at 16:00
  • @MichaelMainer Thanks for the update on this. – crucifix94 Oct 29 '18 at 10:38

1 Answers1

0

To answer your throttling question, yes, you can configure the RetryHandler. There is a RetryOptions object that you can configure. But that may not be necessary since there is already logic that supports retry in the default retry handler.

public RetryOptions(IShouldRetry shouldRetry, int maxRetries, long delay)

Michael Mainer
  • 3,387
  • 1
  • 13
  • 32