public class HTTPRiakClientFactory extends Object implements RiakClientFactory
HTTPClientAdapter
instances configured by the
given HTTPClientConfig
. Converts an HTTPClientConfig
to a
RiakConfig
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<? extends Configuration> configClass)
Is the concrete factory able to create
RawClient s with
configClass Configuration s?
Call before newClient. |
static HTTPRiakClientFactory |
getInstance() |
RawClient |
newClient(Configuration conf)
Create a new
RawClient instance configured by config |
public static HTTPRiakClientFactory getInstance()
public boolean accepts(Class<? extends Configuration> configClass)
RiakClientFactory
RawClient
s with
configClass
Configuration
s?
Call before newClient.accepts
in interface RiakClientFactory
configClass
- the Configuration
implementationRawClient
for the
configClass
false otherwisepublic RawClient newClient(Configuration conf)
RiakClientFactory
RawClient
instance configured by config
newClient
in interface RiakClientFactory
conf
- a specific implementation of Configuration
Copyright © 2013. All Rights Reserved.