public class FetchResponse
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FetchResponse.Status
The response status, can be
FETCHED, NOTMODIFIED or FAILED. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
config()
Gets the fetched configuration value, should be used when the response
has a
FetchResponse.Status.FETCHED status code. |
boolean |
isFailed()
Gets whether the fetch failed or not.
|
boolean |
isFetched()
Gets whether a new configuration value was fetched or not.
|
boolean |
isNotModified()
Gets whether the fetch resulted a '304 Not Modified' or not.
|
public boolean isFetched()
public boolean isNotModified()
public boolean isFailed()
public java.lang.String config()
FetchResponse.Status.FETCHED status code.