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.Object
Information about a status change.
  • Constructor Summary

    Constructors 
    Constructor Description
    Status​(boolean available, boolean refreshNeeded)
    Creates an instance.
  • Method Summary

    Modifier and Type Method 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()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object