public static final class DataStoreStatusProvider.Status
extends java.lang.Object
Constructor and Description |
---|
Status(boolean available,
boolean refreshNeeded)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
isAvailable()
Returns true if the SDK believes the data store is now available.
|
boolean |
isRefreshNeeded()
Returns true if the store may be out of date due to a previous outage, so the SDK should attempt to refresh
all feature flag data and rewrite it to the store.
|
java.lang.String |
toString() |
public Status(boolean available, boolean refreshNeeded)
available
- see isAvailable()
refreshNeeded
- see isRefreshNeeded()
public boolean isAvailable()
This property is normally true. If the SDK receives an exception while trying to query or update the data store, then it sets this property to false (notifying listeners, if any) and polls the store at intervals until a query succeeds. Once it succeeds, it sets the property back to true (again notifying listeners).
public boolean isRefreshNeeded()
This property is not meaningful to application code.
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object