com.basho.riak.client.raw.http
Class HTTPClientConfig

java.lang.Object
  extended by 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

Nested Class Summary
static class HTTPClientConfig.Builder
          Use the builder to create a new instance of HTTPClientConfig.
 
Method Summary
static HTTPClientConfig defaults()
          Create a config with all the default values, see HTTPClientConfig.Builder for the defaults.
 org.apache.http.client.HttpClient getHttpClient()
           
 String getMapreducePath()
           
 Integer getMaxConnections()
           
 org.apache.http.client.HttpRequestRetryHandler getRetryHandler()
           
 Integer getTimeout()
           
 String getUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.