com.basho.riak.client.raw.http
Class HTTPClientConfig
java.lang.Object
com.basho.riak.client.raw.http.HTTPClientConfig
- All Implemented Interfaces:
- Configuration
public class HTTPClientConfig
- extends Object
- implements Configuration
The set of configuration parameters to use when creating an HTTP RawClient
instance.
- Author:
- russell
- See Also:
HTTPClusterConfig
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaults
public static HTTPClientConfig defaults()
- Create a config with all the default values, see
HTTPClientConfig.Builder
for the
defaults.
- Returns:
- an HTTP client config populated with default values;
- See Also:
HTTPClientConfig.Builder
getUrl
public String getUrl()
- Returns:
- the URL
getMapreducePath
public String getMapreducePath()
- Returns:
- the mapreduce path
getHttpClient
public org.apache.http.client.HttpClient getHttpClient()
- Returns:
- the Apache
HttpClient
getTimeout
public Integer getTimeout()
- Returns:
- the timeout in milliseconds for socket connect & read (also used
by HttpClient for pooled connection blocking acquisition timeout)
getMaxConnections
public Integer getMaxConnections()
- Returns:
- the max connections
getRetryHandler
public org.apache.http.client.HttpRequestRetryHandler getRetryHandler()
- Returns:
- the
HttpRequestRetryHandler
Copyright © 2012. All Rights Reserved.