com.basho.riak.client.raw
Interface RiakClientFactory

All Known Implementing Classes:
HTTPClusterClientFactory, HTTPRiakClientFactory, PBClusterClientFactory, PBRiakClientFactory

public interface RiakClientFactory

Top level interface for RawClient factories

Author:
russell

Method Summary
 boolean accepts(Class<? extends Configuration> configClass)
          Is the concrete factory able to create RawClients with configClass Configurations? Call before newClient.
 RawClient newClient(Configuration config)
          Create a new RawClient instance configured by config
 

Method Detail

accepts

boolean accepts(Class<? extends Configuration> configClass)
Is the concrete factory able to create RawClients with configClass Configurations? Call before newClient.

Parameters:
configClass - the Configuration implementation
Returns:
true if this factory can create a RawClient for the configClass false otherwise

newClient

RawClient newClient(Configuration config)
                    throws IOException
Create a new RawClient instance configured by config

Parameters:
config - a specific implementation of Configuration
Returns:
the configured RawClient
Throws:
IOException


Copyright © 2012. All Rights Reserved.