public class RequestConfig
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
RequestConfig() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getConnectAccuracyPercent()
Get the minimum threshold for the successful connect to total request percentage.
|
java.lang.Integer |
getConnectTimeoutMillis()
Get the connection timeout configuration.
|
LightningCoreConstants.HttpMethod |
getMethod()
Get the HTTP method for the URL task.
|
java.lang.String |
getProxyServerHost()
Get the proxy server host.
|
java.lang.Integer |
getProxyServerPort()
Get the proxy server port.
|
java.lang.Integer |
getReadAccuracyPercent()
Get the minimum threshold for the successful read to connect percentage.
|
java.lang.Integer |
getReadWriteTimeoutMillis()
Get the read/write timeout configuration.
|
java.lang.Integer |
getRetryConnectAccuracyPercent()
Get the minimum threshold for the successful connect to total request percentage while retrying failed tasks.
|
java.lang.Integer |
getRetryReadAccuracyPercent()
Get the minimum threshold for the successful read to connect percentage while retrying failed tasks.
|
java.lang.Integer |
getRetrySlowUrlsConnectTimeoutMillis()
Get the connect timeout configuration for failed URLs.
|
java.lang.Integer |
getRetrySlowUrlsReadWriteTimeoutMillis()
Get the read/write timeout configuration for failed URLs.
|
java.lang.Integer |
getSlowUrlsConnectTimeoutMillis()
Get the connection timeout configuration for slow URLs.
|
java.lang.Integer |
getSlowUrlsReadWriteTimeoutMillis()
Get the read/write timeout configuration for slow URLs.
|
boolean |
isRetryFailedTasks()
Check if retry of failed tasks is enabled.
|
void |
loadDefaultValues(SystemConfig config) |
void |
setConnectAccuracyPercent(java.lang.Integer connectAccuracyPercent)
Set the minimum threshold for the successful connect to total request percentage.
|
void |
setConnectTimeoutMillis(java.lang.Integer connectTimeoutInMillis)
Set the connection timeout configuration.
|
void |
setMethod(LightningCoreConstants.HttpMethod method)
Set the HTTP method for the URL task.
|
void |
setProxyServerHost(java.lang.String proxyServerHost)
Set the proxy server host.
|
void |
setProxyServerPort(java.lang.Integer proxyServerPort)
Set the proxy server port.
|
void |
setReadAccuracyPercent(java.lang.Integer readAccuracyPercent)
Set the minimum threshold for the successful read to connect percentage.
|
void |
setReadWriteTimeoutMillis(java.lang.Integer readWriteTimeoutInMillis)
Set the read/write timeout configuration.
|
void |
setRetryConnectAccuracyPercent(java.lang.Integer retryConnectAccuracyPercent)
Set the minimum threshold for the successful connect to total request percentage while retrying failed tasks.
|
void |
setRetryFailedTasks(boolean retryFailedTasks)
Enable/disable the retry of failed tasks.
|
void |
setRetryReadAccuracyPercent(java.lang.Integer retryReadAccuracyPercent)
Set the minimum threshold for the successful read to connect percentage while retrying failed tasks.
|
void |
setRetrySlowUrlsConnectTimeoutMillis(java.lang.Integer retrySlowUrlsConnectTimeoutMillis)
Set the connect timeout configuration for failed URLs.
|
void |
setRetrySlowUrlsReadWriteTimeoutMillis(java.lang.Integer retrySlowUrlsReadWriteTimeoutMillis)
Set the read/write timeout configuration for failed URLs.
|
void |
setSlowUrlsConnectTimeoutMillis(java.lang.Integer longRunningUrlConnectTimeoutMillis)
Set the connection timeout configuration for slow URLs.
|
void |
setSlowUrlsReadWriteTimeoutMillis(java.lang.Integer longRunningUrlReadWriteTimeoutMillis)
Set the read/write timeout configuration for slow URLs.
|
java.lang.String |
toString() |
public void loadDefaultValues(SystemConfig config)
public java.lang.Integer getConnectTimeoutMillis()
public void setConnectTimeoutMillis(java.lang.Integer connectTimeoutInMillis)
connectTimeoutInMillis
- the connection timeoutpublic java.lang.Integer getReadWriteTimeoutMillis()
public void setReadWriteTimeoutMillis(java.lang.Integer readWriteTimeoutInMillis)
readWriteTimeoutInMillis
- the read/write timeoutpublic java.lang.Integer getSlowUrlsConnectTimeoutMillis()
public void setSlowUrlsConnectTimeoutMillis(java.lang.Integer longRunningUrlConnectTimeoutMillis)
longRunningUrlConnectTimeoutMillis
- the connection timeout for long running URLspublic java.lang.Integer getSlowUrlsReadWriteTimeoutMillis()
public void setSlowUrlsReadWriteTimeoutMillis(java.lang.Integer longRunningUrlReadWriteTimeoutMillis)
longRunningUrlReadWriteTimeoutMillis
- the read/write timeout for long running URLspublic boolean isRetryFailedTasks()
true
if retry failed tasks enabledpublic void setRetryFailedTasks(boolean retryFailedTasks)
retryFailedTasks
- retry failed taskspublic java.lang.String getProxyServerHost()
public void setProxyServerHost(java.lang.String proxyServerHost)
proxyServerHost
- the proxy hostpublic java.lang.Integer getProxyServerPort()
public void setProxyServerPort(java.lang.Integer proxyServerPort)
proxyServerPort
- the proxy hostpublic LightningCoreConstants.HttpMethod getMethod()
public void setMethod(LightningCoreConstants.HttpMethod method)
method
- the HTTP methodpublic java.lang.Integer getReadAccuracyPercent()
public void setReadAccuracyPercent(java.lang.Integer readAccuracyPercent)
readAccuracyPercent
- the minimum threshold for the successful read to connect percentagepublic java.lang.Integer getConnectAccuracyPercent()
public void setConnectAccuracyPercent(java.lang.Integer connectAccuracyPercent)
connectAccuracyPercent
- the minimum threshold for the successful connect to total request percentagepublic java.lang.Integer getRetrySlowUrlsConnectTimeoutMillis()
public void setRetrySlowUrlsConnectTimeoutMillis(java.lang.Integer retrySlowUrlsConnectTimeoutMillis)
retrySlowUrlsConnectTimeoutMillis
- the connect timeout configuration for failed URLspublic java.lang.Integer getRetrySlowUrlsReadWriteTimeoutMillis()
public void setRetrySlowUrlsReadWriteTimeoutMillis(java.lang.Integer retrySlowUrlsReadWriteTimeoutMillis)
retrySlowUrlsReadWriteTimeoutMillis
- the read/write timeout configuration for failed URLspublic java.lang.Integer getRetryReadAccuracyPercent()
public void setRetryReadAccuracyPercent(java.lang.Integer retryReadAccuracyPercent)
retryReadAccuracyPercent
- the minimum threshold for the successful read to connect percentage while retrying failed taskspublic java.lang.Integer getRetryConnectAccuracyPercent()
public void setRetryConnectAccuracyPercent(java.lang.Integer retryConnectAccuracyPercent)
retryConnectAccuracyPercent
- the minimum threshold for the successful connect to total request percentage while retrying failed taskspublic java.lang.String toString()
toString
in class java.lang.Object