Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Fix code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Yang committed May 16, 2017
1 parent c78d39e commit 6ad1c43
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/src/main/java/com/uber/cherami/client/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ClientOptions {
/**
* Name of the service using the cheramiClient.
*/
private String clientAppName = "unknown";;
private String clientAppName = "unknown";

/**
* Client for metrics reporting.
Expand All @@ -59,7 +59,24 @@ public class ClientOptions {

private ClientOptions() {
}


/**
* Constructs and returns a client options object. The deployment
* environment is set to staging, by default. Use the Builder to to change
* this.
*
* @deprecated This API is deprecated in favor the the builder.
*
* @param timeout
* rpc timeout value.
* @param timeUnit
* unit for the timeout value.
*/
@Deprecated
public ClientOptions(long timeout, TimeUnit timeUnit) {
this(new Builder().setRpcTimeout(timeUnit.toMillis(timeout)));
}

private ClientOptions(Builder builder) {
this.rpcTimeoutMillis = builder.rpcTimeoutMillis;
this.deploymentStr = builder.deploymentStr;
Expand All @@ -81,23 +98,6 @@ public ClientOptions cloneWithMetricsClient(MetricsClient metricsClient) {
return clone;
}

/**
* Constructs and returns a client options object. The deployment
* environment is set to staging, by default. Use the Builder to to change
* this.
*
* @deprecated This API is deprecated in favor the the builder.
*
* @param timeout
* rpc timeout value.
* @param timeUnit
* unit for the timeout value.
*/
@Deprecated
public ClientOptions(long timeout, TimeUnit timeUnit) {
this(new Builder().setRpcTimeout(timeUnit.toMillis(timeout)));
}

/**
* @return
* Returns the rpc timeout value in millis.
Expand Down

0 comments on commit 6ad1c43

Please sign in to comment.