public class PBRiakClientFactory extends Object implements RiakClientFactory
PBClientAdapters configured as per the PBClientConfig
given.| 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 PBRiakClientFactory |
getInstance() |
RawClient |
newClient(Configuration config)
Create a new
RawClient instance configured by config |
public static PBRiakClientFactory 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.