Enum CacheMode

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

    public enum CacheMode
    extends java.lang.Enum<CacheMode>
    Cache replication mode.
    • Enum Constant Detail

      • LOCAL

        public static final CacheMode LOCAL
        Data is not replicated.
      • REPL_SYNC

        public static final CacheMode REPL_SYNC
        Data replicated synchronously.
      • REPL_ASYNC

        public static final CacheMode REPL_ASYNC
        Data replicated asynchronously.
      • INVALIDATION_SYNC

        public static final CacheMode INVALIDATION_SYNC
        Data invalidated synchronously.
      • INVALIDATION_ASYNC

        public static final CacheMode INVALIDATION_ASYNC
        Data invalidated asynchronously.
      • DIST_SYNC

        public static final CacheMode DIST_SYNC
        Synchronous DIST
      • DIST_ASYNC

        public static final CacheMode DIST_ASYNC
        Async DIST
      • SCATTERED_SYNC

        public static final CacheMode SCATTERED_SYNC
        Synchronous scattered cache
    • Method Detail

      • values

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

        public static CacheMode 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
      • valueOf

        public static CacheMode valueOf​(int order)
        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:
        order - 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
      • isInvalidation

        public boolean isInvalidation()
        Returns true if the mode is invalidation, either sync or async.
      • isSynchronous

        public boolean isSynchronous()
      • isClustered

        public boolean isClustered()
      • isDistributed

        public boolean isDistributed()
      • isReplicated

        public boolean isReplicated()
      • isScattered

        public boolean isScattered()
      • needsStateTransfer

        public boolean needsStateTransfer()
      • friendlyCacheModeString

        public java.lang.String friendlyCacheModeString()