Enum Index

  • All Implemented Interfaces:
    Serializable, Comparable<Index>

    public enum Index
    extends Enum<Index>
    since 11.0. The indexing mode is automatically detected and not configurable anymore (ignored) and will be completely removed in next major version.
    Used to configure indexing mode of entries in the cache for index-assisted searching.

    As of version 11 only modes NONE and ALL are actually internally supported and the indexing mode no longer needs to be specified by the user because the system will determine it automatically.

    Paul Ferraro
    • Enum Constant Detail

      • NONE

        public static final Index NONE
        No indexing is performed.
      • ALL

        public static final Index ALL
        All cluster nodes will add the entry to the index.

        public static final Index PRIMARY_OWNER
        This mode is no longer supported since version 11.0. A configuration error will be raised if encountered.
        Only the primary owner of an entry will add it to the index.
    • Method Detail

      • values

        public static Index[] 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 (Index c : Index.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Index 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isPrimaryOwner

        public boolean isPrimaryOwner()
        in 10.1. Equivalent to a simple equality comparison to PRIMARY_OWNER.