Enum Class CacheWriteMode

java.lang.Object
java.lang.Enum<CacheWriteMode>
org.apache.ignite.cache.CacheWriteMode
All Implemented Interfaces:
Serializable, Comparable<CacheWriteMode>, Constable

public enum CacheWriteMode extends Enum<CacheWriteMode>
Cache store write mode.
  • Enum Constant Details

    • SYNC

      public static final CacheWriteMode SYNC
      Cache store writes are synchronous. Table operations won't return until external cache store write is complete.
    • ASYNC

      public static final CacheWriteMode ASYNC
      Cache store writes are asynchronous and performed in background. Table operations may return before external cache store write completes.
  • Method Details

    • values

      public static CacheWriteMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CacheWriteMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromOrdinal

      public static CacheWriteMode fromOrdinal(int ordinal)
      Efficiently gets enumerated value from its ordinal.
      Parameters:
      ordinal - Ordinal value.
      Returns:
      Enumerated value.
    • fromString

      public static CacheWriteMode fromString(String name)
      Reads WRITE MODE from the string representation as described in the Enum.name() method.
      Parameters:
      name - A string that specifies a WRITE MODE.
      Returns:
      A WRITE MODE enum value.