@Test public void verifyHousekeepingMetadataFetch() { LocalDateTime now = LocalDateTime.now(); Pageable emptyPageable = PageRequest.of(0, 1); expiredMetadataHandler.findRecordsToClean(now, emptyPageable); verify(housekeepingMetadataRepository).findRecordsForCleanupByModifiedTimestamp(now, emptyPageable); }
@Override public Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingMetadataRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); }
ExpiredMetadataHandler implements MetadataHandler { @Override public Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingMetadataRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } }
ExpiredMetadataHandler implements MetadataHandler { @Override public Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingMetadataRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } ExpiredMetadataHandler(CleanerClientFactory cleanerClientFactory,
      HousekeepingMetadataRepository housekeepingMetadataRepository,
      MetadataCleaner metadataCleaner, PathCleaner pathCleaner); }
ExpiredMetadataHandler implements MetadataHandler { @Override public Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingMetadataRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } ExpiredMetadataHandler(CleanerClientFactory cleanerClientFactory,
      HousekeepingMetadataRepository housekeepingMetadataRepository,
      MetadataCleaner metadataCleaner, PathCleaner pathCleaner); @Override Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable); @Override void cleanupMetadata(HousekeepingMetadata housekeepingMetadata, LocalDateTime instant, boolean dryRunEnabled); }
ExpiredMetadataHandler implements MetadataHandler { @Override public Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingMetadataRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } ExpiredMetadataHandler(CleanerClientFactory cleanerClientFactory,
      HousekeepingMetadataRepository housekeepingMetadataRepository,
      MetadataCleaner metadataCleaner, PathCleaner pathCleaner); @Override Page<HousekeepingMetadata> findRecordsToClean(LocalDateTime instant, Pageable pageable); @Override void cleanupMetadata(HousekeepingMetadata housekeepingMetadata, LocalDateTime instant, boolean dryRunEnabled);  }