
com.jetbrains.pluginverifier.repository.cleanup.UsageStatistic.kt Maven / Gradle / Ivy
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.pluginverifier.repository.cleanup
import java.time.Instant
/**
* Recording of the usage statistics of a resource
* that can be useful to sort the resources by their importance.
*/
data class UsageStatistic(
/**
* The last time this resource was added or locked
*/
var lastAccessTime: Instant,
/**
* The total number of times this resource was accessed
*/
var timesAccessed: Long
) {
override fun toString() = "Times accessed: $timesAccessed; Last access time: $lastAccessTime"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy