Class DataStoreStatusProvider.Status
- java.lang.Object
-
- com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.Status
-
- Enclosing interface:
- DataStoreStatusProvider
public static final class DataStoreStatusProvider.Status extends java.lang.ObjectInformation about a status change.
-
-
Constructor Summary
Constructors Constructor Description Status(boolean available, boolean refreshNeeded)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()booleanisAvailable()Returns true if the SDK believes the data store is now available.booleanisRefreshNeeded()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.StringtoString()
-
-
-
Constructor Detail
-
Status
public Status(boolean available, boolean refreshNeeded)Creates an instance.- Parameters:
available- seeisAvailable()refreshNeeded- seeisRefreshNeeded()
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
Returns true if the SDK believes the data store is now available.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).
- Returns:
- true if store is available
-
isRefreshNeeded
public 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.This property is not meaningful to application code.
- Returns:
- true if data should be rewritten
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-