Enum ResourceStatus
- All Implemented Interfaces:
Serializable, Comparable<ResourceStatus>, java.lang.constant.Constable
Represents the status of a stateful resource in the context, indicating
whether the version in memory is valid, stale, or has been deleted from disk.
- Author:
- Anahata
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe resource has been deleted from the disk.An error occurred while checking the status of the resource on disk.The resource exists on disk but has not been loaded into the context.The resource on disk is older than the one in the context (should be rare).The resource on disk has been modified more recently than the one in the context.The resource in the context is identical to the one on disk. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceStatusReturns the enum constant of this type with the specified name.static ResourceStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_IN_CONTEXT
The resource exists on disk but has not been loaded into the context. -
VALID
The resource in the context is identical to the one on disk. -
STALE
The resource on disk has been modified more recently than the one in the context. -
DELETED
The resource has been deleted from the disk. -
OLDER
The resource on disk is older than the one in the context (should be rare). -
ERROR
An error occurred while checking the status of the resource on disk.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
