Class CacheLoadingContext

java.lang.Object
net.shibboleth.oidc.metadata.cache.CacheLoadingContext

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

    • 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 Details

    • 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 Details

    • 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.