Created
February 24, 2011 16:11
-
-
Save russelldb/842356 to your computer and use it in GitHub Desktop.
Snippet on creating your own HttpClient for RiakConfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MultiThreadedHttpConnectionManager m = new MultiThreadedHttpConnectionManager(); | |
m.getParams().setMaxTotalConnections(64); | |
m.getParams().setMaxConnectionsPerHost(64); | |
HttpClient myClient = new HttpClient(m); | |
RiakConfig riakConfig = new RiakConfig("http://127.0.0.1:8098/riak"); | |
riakConfig.setHttpClient(myClient); | |
RiakClient riak = new RiakClient(riakConfig); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment