Package org.redisson.api
Enum SyncMode
- All Implemented Interfaces:
Serializable,Comparable<SyncMode>
Defines the synchronization modes used for replication with Valkey or Redis replica instances.
- Author:
- Nikita Koksharov
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnsures data durability by blocking until replica instances acknowledge that write operations have been applied to memory.Ensures data durability by blocking until write operations are confirmed as persisted to the Append-Only File (AOF) on the primary Redis instance and replicas.Ensures data durability by blocking until write operations are confirmed as persisted to the memory and the Append-Only File (AOF) on the primary Redis instance and replicas if the AOF persistence feature is enabled. -
Method Summary
-
Enum Constant Details
-
AUTO
Ensures data durability by blocking until write operations are confirmed as persisted to the memory and the Append-Only File (AOF) on the primary Redis instance and replicas if the AOF persistence feature is enabled. If AOF persistence is unavailable, falls back to blocking until replica instances acknowledge that write operations have been applied to memory. If neither durability mechanism is available, proceeds without synchronization guarantees. -
ACK
Ensures data durability by blocking until replica instances acknowledge that write operations have been applied to memory. -
ACK_AOF
Ensures data durability by blocking until write operations are confirmed as persisted to the Append-Only File (AOF) on the primary Redis instance and replicas.NOTE: Redis 7.2.0+ or any Valkey version is required
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-