Class RefreshDiagnostics
java.lang.Object
growthbook.sdk.java.diagnostics.model.RefreshDiagnostics
Feature refresh metadata.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanlongNumber of failed refresh events since the last successful refresh event.longNumber of failed refresh events observed by the active repository.Most recent refresh/init error, sanitized for diagnostics output.Epoch-millis timestamp of the last failed refresh event.Whether the last refresh event loaded feature data from cache.Age in milliseconds since the last successful feature refresh.Epoch-millis timestamp of the last successful feature refresh.Milliseconds until the current cache expires.Epoch-millis timestamp when the current feature cache expires.Active feature refresh strategy.longNumber of successful refresh events observed by the active repository.inthashCode()booleanisStale()Whether the current feature data is past its cache expiry.toString()
-
Method Details
-
builder
-
getStrategy
Active feature refresh strategy. -
getLastSuccessfulRefreshAtMillis
Epoch-millis timestamp of the last successful feature refresh. -
getLastSuccessfulRefreshAgeMillis
Age in milliseconds since the last successful feature refresh. -
getNextCacheExpiresAtMillis
Epoch-millis timestamp when the current feature cache expires. -
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
Epoch-millis timestamp of the last failed refresh event. -
getLastLoadedFromCache
Whether the last refresh event loaded feature data from cache. -
getLastError
Most recent refresh/init error, sanitized for diagnostics output. -
equals
-
hashCode
public int hashCode() -
toString
-