public static enum CacheableData.CacheStatus extends Enum<CacheableData.CacheStatus>
CacheableData can be in one of the following
 five status types:
 EMPTY: Either there is no data blob at all, or the data blob  
 resides in a specified import file and has never been downloaded yet.
 READ:   The data blob is in main memory; one or more threads are
 referencing and reading it (shared "read-only" lock).  This status uses a
 counter.  Eviction is NOT allowed.
 MODIFY:   The data blob is in main memory; exactly one thread is
 referencing and modifying it (exclusive "write" lock).  Eviction is NOT allowed.
 CACHED:   The data blob is in main memory, and nobody is using nor referencing it. 
 There is always an persistent recovery object for it| Enum Constant and Description | 
|---|
| CACHED | 
| CACHED_NOWRITE | 
| EMPTY | 
| MODIFY | 
| READ | 
| Modifier and Type | Method and Description | 
|---|---|
| static CacheableData.CacheStatus | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static CacheableData.CacheStatus[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final CacheableData.CacheStatus EMPTY
public static final CacheableData.CacheStatus READ
public static final CacheableData.CacheStatus MODIFY
public static final CacheableData.CacheStatus CACHED
public static final CacheableData.CacheStatus CACHED_NOWRITE
public static CacheableData.CacheStatus[] values()
for (CacheableData.CacheStatus c : CacheableData.CacheStatus.values()) System.out.println(c);
public static CacheableData.CacheStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 The Apache Software Foundation. All rights reserved.