Class MetadataReconstructionMetricsCache
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.metrics.MetadataReconstructionMetricsCache
-
@ThreadSafe public class MetadataReconstructionMetricsCache extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetadataReconstructionMetricsCache(long cacheDuration, java.util.concurrent.TimeUnit cacheDurationUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
getDocumentReconstructionLatency(MetadataCollections metadataCollection, int tenant, java.lang.String strategy)
java.time.Duration
getGraphReconstructionLatency(MetadataCollections metadataCollection)
void
registerLastDocumentReconstructionDate(MetadataCollections metadataCollection, int tenant, java.lang.String strategy, java.time.LocalDateTime lastDocumentReconstructionDate)
void
registerLastGraphReconstructionDate(MetadataCollections metadataCollection, java.time.LocalDateTime lastGraphReconstructionDate)
-
-
-
Method Detail
-
registerLastDocumentReconstructionDate
public void registerLastDocumentReconstructionDate(MetadataCollections metadataCollection, int tenant, java.lang.String strategy, java.time.LocalDateTime lastDocumentReconstructionDate)
-
getDocumentReconstructionLatency
public java.time.Duration getDocumentReconstructionLatency(MetadataCollections metadataCollection, int tenant, java.lang.String strategy)
-
registerLastGraphReconstructionDate
public void registerLastGraphReconstructionDate(MetadataCollections metadataCollection, java.time.LocalDateTime lastGraphReconstructionDate)
-
getGraphReconstructionLatency
public java.time.Duration getGraphReconstructionLatency(MetadataCollections metadataCollection)
-
-