Enum SyncFailureMode

java.lang.Object
java.lang.Enum<SyncFailureMode>
org.redisson.api.SyncFailureMode
All Implemented Interfaces:
Serializable, Comparable<SyncFailureMode>

public enum SyncFailureMode extends Enum<SyncFailureMode>
Defines the behavior modes when synchronization with Valkey or Redis secondary nodes fails.
Author:
Nikita Koksharov
  • Enum Constant Details

    • THROW_EXCEPTION

      public static final SyncFailureMode 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

      public static final SyncFailureMode 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

      public static SyncFailureMode[] 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

      public static SyncFailureMode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null