public class Config extends Object
| Constructor and Description |
|---|
Config()
Creates a default options
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBackoff() |
String |
getHost() |
int |
getMaxQueueSize() |
org.apache.http.HttpHost |
getProxy() |
int |
getRetries() |
int |
getTimeout() |
Config |
setBackoff(int backoff)
Sets the milliseconds to wait between request retries
|
Config |
setHost(String host)
Sets the REST API endpoint
|
Config |
setMaxQueueSize(int maxQueueSize)
Sets the maximum queue capacity, which is an emergency pressure relief
valve.
|
Config |
setProxy(org.apache.http.HttpHost proxy)
Sets a proxy to route all requests to the host through.
|
Config |
setRetries(int retries)
Sets the amount of request retries.
|
Config |
setTimeout(int timeout)
Sets the milliseconds to wait before a flush is marked as timed out.
|
public String getHost()
public int getMaxQueueSize()
public org.apache.http.HttpHost getProxy()
public int getTimeout()
public int getRetries()
public int getBackoff()
public Config setMaxQueueSize(int maxQueueSize)
maxQueueSize - public Config setProxy(org.apache.http.HttpHost proxy)
proxy - Valid http proxy.public Config setTimeout(int timeout)
timeout - timeout in milliseconds.public Config setRetries(int retries)
retries - number of times to retry the requestpublic Config setBackoff(int backoff)
backoff - in milliseconds.Copyright © 2015. All Rights Reserved.