setRetry method
Set how many times the request should retry if it fails.
Implementation
void setRetry(int retry) {
  this.retry = retry;
}Set how many times the request should retry if it fails.
void setRetry(int retry) {
  this.retry = retry;
}