public class HTTPClusterClientFactory extends Object implements RiakClientFactory
HTTPClusterClient
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 RiakClientFactory |
getInstance() |
RawClient |
newClient(Configuration config)
Create a new
RawClient instance configured by config |
public static RiakClientFactory 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 config) throws IOException
RiakClientFactory
RawClient
instance configured by config
newClient
in interface RiakClientFactory
config
- a specific implementation of Configuration
IOException
Copyright © 2014. All Rights Reserved.