Class RefreshDiagnostics

java.lang.Object
growthbook.sdk.java.diagnostics.model.RefreshDiagnostics

public final class RefreshDiagnostics extends Object
Feature refresh metadata.
  • Method Details

    • builder

    • getStrategy

      public FeatureRefreshStrategy getStrategy()
      Active feature refresh strategy.
    • getLastSuccessfulRefreshAtMillis

      @Nullable public Long getLastSuccessfulRefreshAtMillis()
      Epoch-millis timestamp of the last successful feature refresh.
    • getLastSuccessfulRefreshAgeMillis

      @Nullable public Long getLastSuccessfulRefreshAgeMillis()
      Age in milliseconds since the last successful feature refresh.
    • getNextCacheExpiresAtMillis

      @Nullable public Long getNextCacheExpiresAtMillis()
      Epoch-millis timestamp when the current feature cache expires.
    • getMillisUntilCacheExpiry

      @Nullable public Long getMillisUntilCacheExpiry()
      Milliseconds until the current cache expires. Negative values mean it is already stale.
    • isStale

      public boolean isStale()
      Whether the current feature data is past its cache expiry.
    • getSuccessCount

      public long getSuccessCount()
      Number of successful refresh events observed by the active repository.
    • getFailureCount

      public long getFailureCount()
      Number of failed refresh events observed by the active repository.
    • getConsecutiveFailures

      public long getConsecutiveFailures()
      Number of failed refresh events since the last successful refresh event.
    • getLastFailureAtMillis

      @Nullable public Long getLastFailureAtMillis()
      Epoch-millis timestamp of the last failed refresh event.
    • getLastLoadedFromCache

      @Nullable public Boolean getLastLoadedFromCache()
      Whether the last refresh event loaded feature data from cache.
    • getLastError

      @Nullable public ErrorDiagnostics getLastError()
      Most recent refresh/init error, sanitized for diagnostics output.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object