Class RefreshResult<T>

    • Method Detail

      • builder

        public static <T> RefreshResult.Builder<T> builder​(T value)
        Get a builder for creating a RefreshResult.
        Parameters:
        value - The value that should be cached by the supplier.
      • value

        public T value()
        The value resulting from the refresh.
      • staleTime

        public Instant staleTime()
        When the configured value is stale and should no longer be used. All threads will block until the value is updated.