Skip to content

Commit

Permalink
Merge branch 'timeout-fix' into 'master'
Browse files Browse the repository at this point in the history
Reverting back to original API for configuring timeouts

See merge request kount/third_party/kount-ris-java-sdk!13
  • Loading branch information
Kevin Cole committed Aug 20, 2020
2 parents 5a3e3f0 + 97c4029 commit 3541515
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 265 deletions.
54 changes: 0 additions & 54 deletions kount-ris-sdk/src/main/java/com/kount/ris/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,58 +419,4 @@ public Request setCloseOnFinish(boolean cof) {
closeOnFinish = cof;
return this;
}

/**
* Set the connection timeout assigned by Kount.
*
* @param connTimeout
* connection timeout
* @return this
*/
//Please be cautious if you choose to override the default settings for connection time out.
public Request setConnectionTimeOut(int connTimeout) {
params.put("CONNTIMEOUT", Integer.valueOf(connTimeout).toString());
return this;
}

/**
* Set the socket timeout assigned by Kount.
*
* @param socketTimeout
* socket timeout
* @return this
*/
//Please be cautious if you choose to override the default settings for socket time out
public Request setSocketTimeOut(int socketTimeout) {
params.put("SOCKETIMEOUT", Integer.valueOf(socketTimeout).toString());
return this;
}


/**
* Set the connection Time To Live .
*
* @param connectionTimeToLive
* connection Time To Live
* @return this
*/
//Please be cautious if you choose to override the default settings for connection time to live.
public Request setConnectionTimeToLive(int connectionTimeToLive) {
params.put("CONNTIMETOLIVE", Integer.valueOf(connectionTimeToLive).toString());
return this;
}

/**
* Set the SoTimeout timeout .
*
* @param SoTimeout
* So timeout
* @return this
*/
//Please be cautious if you choose to override the default settings for so time out.
public Request setSoTimeout(int soTimeout) {
params.put("SOTIMEOUT", Integer.valueOf(soTimeout).toString());
return this;
}

}
Loading

0 comments on commit 3541515

Please sign in to comment.