Class MetadataReconstructionMetricsCache

java.lang.Object
fr.gouv.vitam.metadata.core.metrics.MetadataReconstructionMetricsCache

@ThreadSafe public class MetadataReconstructionMetricsCache extends Object
  • Constructor Details

    • MetadataReconstructionMetricsCache

      public MetadataReconstructionMetricsCache(long cacheDuration, TimeUnit cacheDurationUnit)
  • Method Details

    • registerLastDocumentReconstructionDate

      public void registerLastDocumentReconstructionDate(MetadataCollections metadataCollection, int tenant, String strategy, LocalDateTime lastDocumentReconstructionDate)
    • getDocumentReconstructionLatency

      public Duration getDocumentReconstructionLatency(MetadataCollections metadataCollection, int tenant, String strategy)
    • registerLastGraphReconstructionDate

      public void registerLastGraphReconstructionDate(MetadataCollections metadataCollection, LocalDateTime lastGraphReconstructionDate)
    • getGraphReconstructionLatency

      public Duration getGraphReconstructionLatency(MetadataCollections metadataCollection)