Azure / autorest-clientruntime-for-java

The runtime libraries for AutoRest generated Java clients.
MIT License
20 stars 59 forks source link

add initial delay on retry-after, after activation, before 1st get #694

Closed weidongxu-microsoft closed 3 years ago

weidongxu-microsoft commented 3 years ago

fix https://github.com/Azure/azure-libraries-for-java/issues/1333

The case in IcM is that:

  1. PUT, return retry-after 10
  2. GET, return retry-after 30, etc.

And current runtime skipped the 10sec between step1 and step2.

In this PR, I added one additional operator to do this retry-after delay specified in activation response (on condition that it is not in terminal state).

@jianghaolu @anuchandy @ChenTanyi @xccc-msft @yungezz