summaryrefslogtreecommitdiff
path: root/plugins/kotlin/jps/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/CacheStatus.kt
blob: 0359e08c60820d739a55a69033600ebff374f68f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.

package org.jetbrains.kotlin.jps.incremental

/**
 * Status that is used by system to perform required actions (i.e. rebuild something, clearing caches, etc...).
 */
enum class CacheStatus {
    /**
     * Cache is valid and ready to use.
     */
    VALID,

    /**
     * Cache is not exists or have outdated versions and/or other attributes.
     */
    INVALID,

    /**
     * Cache is exists, but not required anymore.
     */
    SHOULD_BE_CLEARED,

    /**
     * Cache is not exists and not required.
     */
    CLEARED
}