Class CacheDiagnostics

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

public final class CacheDiagnostics extends Object
Feature cache metadata.
  • Method Details

    • builder

    • getState

      public CacheState getState()
      Derived cache state for support/debugging flows.
    • getMode

      public CacheMode getMode()
      Configured cache mode from client options.
    • isEnabled

      public boolean isEnabled()
      Whether feature cache persistence is enabled for the active repository/configuration.
    • getLastUpdatedMillis

      public long getLastUpdatedMillis()
      Epoch-millis timestamp of the last cache update, or 0 when unavailable.
    • getAgeMillis

      @Nullable public Long getAgeMillis()
      Age in milliseconds since the last cache update.
    • 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