Class DynamicMetadataCache.ExpiredAndIdleMetadataCleanupTask

    • Field Detail

      • log

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

      • ExpiredAndIdleMetadataCleanupTask

        private ExpiredAndIdleMetadataCleanupTask()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • 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