Enum CacheTopology

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CacheTopology>

    public enum CacheTopology
    extends java.lang.Enum<CacheTopology>
    Cache Topology tells about the cache topology This includes the CacheTopology Enum, use to store cache Topology information.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LocalOutproc
      Local is used for Local outproc cache representation.
      Mirrored
      Mirrored is used for Mirror topology representation.
      None
      Empty configuration of topology
      Partitioned
      Partitioned is used for Replicated topology representation.
      PartitionReplica
      ParitionReplica is used for Partitioned of Replica cache representation.
      Replicated
      Replicated is used for Replicated topology representation.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CacheTopology forValue​(int value)
      retreives the enum constant of the specified value, if exists.
      int getValue()
      Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
      static CacheTopology valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CacheTopology[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • None

        public static final CacheTopology None
        Empty configuration of topology
      • Mirrored

        public static final CacheTopology Mirrored
        Mirrored is used for Mirror topology representation.
      • Replicated

        public static final CacheTopology Replicated
        Replicated is used for Replicated topology representation.
      • Partitioned

        public static final CacheTopology Partitioned
        Partitioned is used for Replicated topology representation.
      • LocalOutproc

        public static final CacheTopology LocalOutproc
        Local is used for Local outproc cache representation.
      • PartitionReplica

        public static final CacheTopology PartitionReplica
        ParitionReplica is used for Partitioned of Replica cache representation.
    • Method Detail

      • values

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

        public static CacheTopology valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forValue

        public static CacheTopology forValue​(int value)
        retreives the enum constant of the specified value, if exists.
        Parameters:
        value - enum constant index
        Returns:
        enum constant
      • getValue

        public int getValue()
        Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
        Returns:
        enum constant index