Skip to content

Instantly share code, notes, and snippets.

@rjenkins
Last active August 29, 2015 14:03
Show Gist options
  • Save rjenkins/b0e81cf2209631ff54fa to your computer and use it in GitHub Desktop.
Save rjenkins/b0e81cf2209631ff54fa to your computer and use it in GitHub Desktop.
/**
* Command used to fetch multiple values from Riak
* <p>
* Riak itself does not support pipelining of requests. MutliFetch addresses this issue by using a thread to
* parallelize and manage a set of async fetch operations for a given set of keys.
* </p>
* <p>
* The result of executing this command is a {@code List} of {@link RiakFuture} objects, each one representing a single
* fetch operation. The returned {@code RiakFuture} that contains that list completes
* when all the FetchValue operations contained have finished.
* <p/>
* <pre>
* {@code
* MultiFetch multifetch = ...;
* MultiFetch.Response response = client.execute(multifetch);
...
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment