Skip to content

Instantly share code, notes, and snippets.

@nsivabalan
Created April 29, 2020 17:27
Show Gist options
  • Select an option

  • Save nsivabalan/269dba0922621d099e5262f0900ae77a to your computer and use it in GitHub Desktop.

Select an option

Save nsivabalan/269dba0922621d099e5262f0900ae77a to your computer and use it in GitHub Desktop.
public class UberCallOptions {
private boolean isRetryEnabled = false;
private RetryPolicy retryPolicy = null;
private long timeout = 30000;
public void setRetryEnabled() {
isRetryEnabled = true;
}
public boolean isRetryEnabled() {
return isRetryEnabled;
}
public RetryPolicy getRetryPolicy() {
return retryPolicy;
}
public void setRetryPolicy(RetryPolicy retryPolicy) {
this.retryPolicy = retryPolicy;
}
public long getTimeoutInMs() {
return timeout;
}
public void setTimeoutInMs(long timeoutInMs){
this.timeout = timeoutInMs;
}
.
.
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment