public static class ListKeysOperation.Builder extends Object
Constructor and Description |
---|
Builder(Namespace namespace)
Construct a builder for a ListKeysOperaiton.
|
Modifier and Type | Method and Description |
---|---|
ListKeysOperation |
build() |
ListKeysOperation.Builder |
streamResults(boolean streamResults)
Set the streamResults flag.
|
ListKeysOperation.Builder |
withTimeout(int timeout) |
public Builder(Namespace namespace)
namespace
- The namespace in Riak.public ListKeysOperation.Builder withTimeout(int timeout)
public ListKeysOperation.Builder streamResults(boolean streamResults)
FutureOperation.get()
method once the operation is complete.
If set to true, results will be pushed to the queue available through the PBStreamingFutureOperation.getResultsQueue()
method as soon as they are available.streamResults
- whether to stream results to FutureOperation.get()
(false), or PBStreamingFutureOperation.getResultsQueue()
(true)public ListKeysOperation build()
Copyright © 2016. All rights reserved.