Enum ResourceStatus

java.lang.Object
java.lang.Enum<ResourceStatus>
uno.anahata.ai.context.stateful.ResourceStatus
All Implemented Interfaces:
Serializable, Comparable<ResourceStatus>, java.lang.constant.Constable

public enum ResourceStatus extends Enum<ResourceStatus>
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
  • Enum Constant Details

    • NOT_IN_CONTEXT

      public static final ResourceStatus NOT_IN_CONTEXT
      The resource exists on disk but has not been loaded into the context.
    • VALID

      public static final ResourceStatus VALID
      The resource in the context is identical to the one on disk.
    • STALE

      public static final ResourceStatus STALE
      The resource on disk has been modified more recently than the one in the context.
    • DELETED

      public static final ResourceStatus DELETED
      The resource has been deleted from the disk.
    • OLDER

      public static final ResourceStatus OLDER
      The resource on disk is older than the one in the context (should be rare).
    • ERROR

      public static final ResourceStatus ERROR
      An error occurred while checking the status of the resource on disk.
  • Method Details

    • values

      public static ResourceStatus[] 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

      public static ResourceStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null