Class BigSegmentStoreStatusProvider.Status

    • Constructor Summary

      Constructors 
      Constructor Description
      Status​(boolean available, boolean stale)
      Constructor for a Big Segment status.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      boolean isAvailable()
      True if the Big Segment store is able to respond to queries, so that the SDK can evaluate whether a user is in a segment or not.
      boolean isStale()
      True if the Big Segment store is available, but has not been updated within the amount of time specified by BigSegmentsConfigurationBuilder.staleAfter(Duration).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Status

        public Status​(boolean available,
                      boolean stale)
        Constructor for a Big Segment status.
        Parameters:
        available - whether the Big Segment store is available
        stale - whether the Big Segment store has not been recently updated
    • Method Detail

      • isAvailable

        public boolean isAvailable()
        True if the Big Segment store is able to respond to queries, so that the SDK can evaluate whether a user is in a segment or not.

        If this property is false, the store is not able to make queries (for instance, it may not have a valid database connection). In this case, the SDK will treat any reference to a Big Segment as if no users are included in that segment. Also, the EvaluationReason associated with any flag evaluation that references a Big Segment when the store is not available will have a EvaluationReason.BigSegmentsStatus of EvaluationReason.BigSegmentsStatus.STORE_ERROR.

        Returns:
        whether the Big Segment store is able to respond to queries
      • isStale

        public boolean isStale()
        True if the Big Segment store is available, but has not been updated within the amount of time specified by BigSegmentsConfigurationBuilder.staleAfter(Duration).

        This may indicate that the LaunchDarkly Relay Proxy, which populates the store, has stopped running or has become unable to receive fresh data from LaunchDarkly. Any feature flag evaluations that reference a Big Segment will be using the last known data, which may be out of date.

        Returns:
        whether the data in the Big Segment store is considered to be stale
      • 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