| Package | Description |
|---|---|
| com.orbitz.consul | |
| com.orbitz.consul.model.kv |
| Modifier and Type | Method and Description |
|---|---|
Optional<ConsulResponse<Value>> |
KeyValueClient.getConsulResponseWithValue(String key)
Retrieves a
ConsulResponse with the
Value for a spefici key from the
key/value store |
Optional<ConsulResponse<Value>> |
KeyValueClient.getConsulResponseWithValue(String key,
QueryOptions queryOptions)
Returns a
ConsulResponse for a specific key from the kv store. |
ConsulResponse<List<Value>> |
KeyValueClient.getConsulResponseWithValues(String key)
Retrieves a
ConsulResponse with a list of Value objects along with
consul response headers for a specific key from the key/value store. |
ConsulResponse<List<Value>> |
KeyValueClient.getConsulResponseWithValues(String key,
QueryOptions queryOptions)
Retrieves a
ConsulResponse with a list of Value objects along with
consul response headers for a specific key from the key/value store. |
Optional<Value> |
KeyValueClient.getValue(String key)
Retrieves a
Value for a specific key
from the key/value store. |
Optional<Value> |
KeyValueClient.getValue(String key,
QueryOptions queryOptions)
Retrieves a
Value for a specific key
from the key/value store. |
List<Value> |
KeyValueClient.getValues(String key)
Retrieves a list of
Value objects for a specific key
from the key/value store. |
List<Value> |
KeyValueClient.getValues(String key,
QueryOptions queryOptions)
Retrieves a list of
Value objects for a specific key
from the key/value store. |
| Modifier and Type | Method and Description |
|---|---|
void |
KeyValueClient.getValue(String key,
QueryOptions queryOptions,
ConsulResponseCallback<Optional<Value>> callback)
Asynchronously retrieves a
Value for a specific key
from the key/value store. |
void |
KeyValueClient.getValues(String key,
QueryOptions queryOptions,
ConsulResponseCallback<List<Value>> callback)
Asynchronously retrieves a list of
Value objects for a specific key
from the key/value store. |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableValue
Immutable implementation of
Value. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Map<String,Value>> |
ImmutableTxResponse.results() |
abstract List<Map<String,Value>> |
TxResponse.results() |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableValue |
ImmutableValue.copyOf(Value instance)
Creates an immutable copy of a
Value value. |
ImmutableValue.Builder |
ImmutableValue.Builder.from(Value instance)
Fill a builder with attribute values from the provided
Value instance. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableTxResponse.Builder |
ImmutableTxResponse.Builder.addAllResults(Iterable<? extends Map<String,Value>> elements)
Adds elements to
results list. |
ImmutableTxResponse.Builder |
ImmutableTxResponse.Builder.addResults(Map<String,Value> element)
Adds one element to
results list. |
ImmutableTxResponse.Builder |
ImmutableTxResponse.Builder.results(Iterable<? extends Map<String,Value>> elements)
Sets or replaces all elements for
results list. |
ImmutableTxResponse |
ImmutableTxResponse.withResults(Iterable<? extends Map<String,Value>> elements)
Copy the current immutable object with elements that replace the content of
results. |
Copyright © 2018. All rights reserved.