Created
April 29, 2020 17:27
-
-
Save nsivabalan/269dba0922621d099e5262f0900ae77a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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