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 Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Modifier Constructor Description privateExpiredAndIdleMetadataCleanupTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisRemoveData(MetadataManagementData<IdentifierType> mgmtData, Instant now, Instant earliestValidLastAccessed)Determine whether metadata should be removed based on expiration and idle time data.private voidremoveExpiredAndIdleMetadata()Purge metadata ifisRemoveData(MetadataManagementData, Instant, Instant)is true.voidrun()
-
-
-
Method Detail
-
removeExpiredAndIdleMetadata
private void removeExpiredAndIdleMetadata()
Purge metadata ifisRemoveData(MetadataManagementData, Instant, Instant)is true.
-
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 entitynow- the current timeearliestValidLastAccessed- the earliest last accessed time which would be valid- Returns:
- true if the entity is expired or exceeds the max idle time, false otherwise
-
-