Class DynamicMetadataCache.ExpiredAndIdleMetadataCleanupTask

java.lang.Object
net.shibboleth.oidc.metadata.cache.impl.DynamicMetadataCache.ExpiredAndIdleMetadataCleanupTask
All Implemented Interfaces:
Runnable
Enclosing class:
DynamicMetadataCache<IdentifierType,MetadataType>

private class DynamicMetadataCache.ExpiredAndIdleMetadataCleanupTask extends Object implements Runnable
Cleanup task that removes expired and idle metadata from the backing store.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Logger.
  • Constructor Details

    • ExpiredAndIdleMetadataCleanupTask

      private ExpiredAndIdleMetadataCleanupTask()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • removeExpiredAndIdleMetadata

      private void removeExpiredAndIdleMetadata()
    • isRemoveData

      private boolean isRemoveData(@Nonnull MetadataManagementData<IdentifierType> mgmtData, @Nonnull Instant now, @Nonnull Instant earliestValidLastAccessed)
      Determine whether metadata should be removed based on expiration and idle time data.
      Parameters:
      mgmtData - the management data instance for the entity
      now - the current time
      earliestValidLastAccessed - the earliest last accessed time which would be valid
      Returns:
      true if the entity is expired or exceeds the max idle time, false otherwise