Enum DistributionMode

  • All Implemented Interfaces:
    Serializable, Comparable<DistributionMode>

    public enum DistributionMode
    extends Enum<DistributionMode>
    Modes for defining the scope of distributed synchronization. Each mode includes/excludes different types of cache operations (population, invalidation, eviction) which are then considered or not considered for distributed synchronization between cache instances.
    Author:
    Andreas Oberhoff
    • Enum Constant Detail

      • POPULATION_AND_INVALIDATION_AND_EVICTION

        public static final DistributionMode POPULATION_AND_INVALIDATION_AND_EVICTION
        Includes population (manual or loading), invalidation (explicit removal) and eviction (size- or time-based removal).

        Note: This is the default distribution mode and corresponds to a full replication.

      • POPULATION_AND_INVALIDATION

        public static final DistributionMode POPULATION_AND_INVALIDATION
        Includes population (manual or loading) and invalidation (explicit removal), but excludes eviction (size- or time-based removal).
      • INVALIDATION_AND_EVICTION

        public static final DistributionMode INVALIDATION_AND_EVICTION
        Includes invalidation (explicit removal) and eviction (size- or time-based removal), but excludes population (manual or loading).
      • INVALIDATION

        public static final DistributionMode INVALIDATION
        Includes invalidation (explicit removal), but excludes population (manual or loading) and eviction (size- or time-based removal).
    • Method Detail

      • values

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

        public static DistributionMode 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