Enum ContextLifecycle

    • Enum Constant Detail

      • LIVE

        public static final ContextLifecycle LIVE
        Includes only live (non-deleted) contexts.
      • DELETED

        public static final ContextLifecycle DELETED
        Includes only deleted (cemetery) contexts.
      • ALL

        public static final ContextLifecycle ALL
        Includes both live and deleted contexts.
    • Field Detail

      • LIVE_WIRE

        public static final String LIVE_WIRE
        Lowercase wire value for live contexts only (default).
        See Also:
        Constant Field Values
      • DELETED_WIRE

        public static final String DELETED_WIRE
        Lowercase wire value for deleted (cemetery) contexts only.
        See Also:
        Constant Field Values
      • DEFAULT

        public static final ContextLifecycle DEFAULT
        The default lifecycle slice when no parameter is supplied.
    • Method Detail

      • values

        public static ContextLifecycle[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ContextLifecycle c : ContextLifecycle.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContextLifecycle 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
      • fromString

        public static ContextLifecycle fromString​(String s)
        Parses a wire value (case-insensitive). Returns null for unrecognised strings.
        Parameters:
        s - the wire string to parse
        Returns:
        the matching ContextLifecycle, or null if unrecognised