public static class StoreIndex.Builder extends Object
Constructor and Description |
---|
Builder(YokozunaIndex index)
Construct a Builder for a StoreIndex command.
|
Modifier and Type | Method and Description |
---|---|
StoreIndex |
build()
Construct the StoreIndex command.
|
StoreIndex.Builder |
withTimeout(int timeout)
Set the Riak-side timeout value, available in Riak 2.1 and later.
|
public Builder(YokozunaIndex index)
index
- The index to create or edit in Riak.public StoreIndex.Builder withTimeout(int timeout)
By default, riak has a 45s timeout for Yokozuna index creation. Setting this value will override that default for this operation.
timeout
- the timeout in milliseconds to be sent to riak.public StoreIndex build()
Copyright © 2016. All rights reserved.