Retry Interceptor
OkHttp interceptor that retries a request after a transport failure (IOException) or an HTTP 5xx response. 4xx responses are returned without retrying.
Used by SceneFormContext.callGameAPI with maxRetries = 3, on a client created per call.
Note: the retry counter is a field of the interceptor and is never reset, so one instance allows at most maxRetries retries over its whole lifetime, not per request.
Parameters
max Retries
Maximum number of extra attempts.