Package org.apache.ignite.cache
Enum Class CacheWriteMode
- All Implemented Interfaces:
Serializable
,Comparable<CacheWriteMode>
,Constable
Cache store write mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheWriteMode
fromOrdinal
(int ordinal) Efficiently gets enumerated value from its ordinal.static CacheWriteMode
fromString
(String name) Reads WRITE MODE from the string representation as described in theEnum.name()
method.static CacheWriteMode
Returns the enum constant of this class with the specified name.static CacheWriteMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYNC
Cache store writes are synchronous. Table operations won't return until external cache store write is complete. -
ASYNC
Cache store writes are asynchronous and performed in background. Table operations may return before external cache store write completes.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromOrdinal
Efficiently gets enumerated value from its ordinal.- Parameters:
ordinal
- Ordinal value.- Returns:
- Enumerated value.
-
fromString
Reads WRITE MODE from the string representation as described in theEnum.name()
method.- Parameters:
name
- A string that specifies a WRITE MODE.- Returns:
- A WRITE MODE enum value.
-