Class CacheLoadingContext


  • @Immutable
    public class CacheLoadingContext
    extends Object
    Context to hold information pertaining to a cache loading event.
    • Field Detail

      • lastUpdate

        @Nullable
        private final Instant lastUpdate
        Last time the metadata was updated.
      • lastRefresh

        @Nullable
        private final Instant lastRefresh
        Last time a refresh cycle occurred.
    • Constructor Detail

      • CacheLoadingContext

        public CacheLoadingContext​(@Nullable
                                   Instant lastUpdateTime,
                                   @Nullable
                                   Instant lastRefreshTime)
        Constructor.
        Parameters:
        lastUpdateTime - the time of the last successful loading event.
        lastRefreshTime - the time of the last refresh attempt.
    • Method Detail

      • getLastUpdate

        public final Instant getLastUpdate()
        Get the last successful update time.
        Returns:
        Returns the lastUpdate.
      • getLastRefresh

        public final Instant getLastRefresh()
        Get the last refresh time.
        Returns:
        Returns the lastRefresh.