Package org.redisson.api
Enum SyncFailureMode
- All Implemented Interfaces:
Serializable,Comparable<SyncFailureMode>
Defines the behavior modes when synchronization with Valkey or Redis secondary nodes
fails.
- Author:
- Nikita Koksharov
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen synchronization fails, log a warning message but continue execution.When synchronization fails, throw an exception to the caller. -
Method Summary
Modifier and TypeMethodDescriptionstatic SyncFailureModeReturns the enum constant of this type with the specified name.static SyncFailureMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THROW_EXCEPTION
When synchronization fails, throw an exception to the caller.This mode is useful in scenarios where synchronization failures should be immediately visible and handled by the application code.
-
LOG_WARNING
When synchronization fails, log a warning message but continue execution.This mode is suitable for non-critical synchronization operations where the application can continue functioning despite synchronization issues.
-
-
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
-