com.basho.riak.client.api.commands.kv.KvBuilderBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riak-client Show documentation
Show all versions of riak-client Show documentation
HttpClient-based client for Riak
The newest version!
package com.basho.riak.client.api.commands.kv;
import com.basho.riak.client.api.commands.RiakOption;
import com.basho.riak.client.core.query.Location;
import java.util.HashMap;
import java.util.Map;
public abstract class KvBuilderBase
{
protected final Location location;
protected final Map, Object> options = new HashMap<>();
protected KvBuilderBase(Location location)
{
if (location == null)
{
throw new IllegalArgumentException("Location cannot be null");
}
this.location = location;
}
/**
* Add an optional setting for this command.
* This will be passed along with the request to Riak to tell it how
* to behave when servicing the request.
*
* @param option the option
* @param value the value for the option
*/
protected void addOption(RiakOption> option, Object value)
{
options.put(option, value);
}
public abstract ConstructedType build();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy