public class PBClusterClientFactory extends Object implements RiakClientFactory
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends Configuration> configClass)
Is the concrete factory able to create
RawClients with
configClass Configurations?
Call before newClient. |
static PBClusterClientFactory |
getInstance() |
RawClient |
newClient(Configuration config)
Create a new
RawClient instance configured by config |
public static PBClusterClientFactory getInstance()
public boolean accepts(Class<? extends Configuration> configClass)
RiakClientFactoryRawClients with
configClass Configurations?
Call before newClient.accepts in interface RiakClientFactoryconfigClass - the Configuration implementationRawClient for the
configClass false otherwisepublic RawClient newClient(Configuration config) throws IOException
RiakClientFactoryRawClient instance configured by confignewClient in interface RiakClientFactoryconfig - a specific implementation of ConfigurationIOExceptionCopyright © 2014. All Rights Reserved.