Enum Class ClientSqlResubmissionMode

java.lang.Object
java.lang.Enum<ClientSqlResubmissionMode>
com.hazelcast.client.config.ClientSqlResubmissionMode
All Implemented Interfaces:
Serializable, Comparable<ClientSqlResubmissionMode>, Constable

public enum ClientSqlResubmissionMode extends Enum<ClientSqlResubmissionMode>
The configuration when to retry query that fails with reasons:
  • SqlErrorCode.CONNECTION_PROBLEM
  • SqlErrorCode.PARTITION_DISTRIBUTION
  • SqlErrorCode.TOPOLOGY_CHANGE
  • SqlErrorCode.RESTARTABLE_ERROR
Since:
5.2
  • Enum Constant Details

    • NEVER

      public static final ClientSqlResubmissionMode NEVER
      If a query fails, the failure is immediately forwarded to the caller.
    • RETRY_SELECTS

      public static final ClientSqlResubmissionMode RETRY_SELECTS
      The query will be retried if:
      • no rows were received yet
      • the SQL text starts with `SELECT` (case-insensitive, ignoring white space)
    • RETRY_SELECTS_ALLOW_DUPLICATES

      public static final ClientSqlResubmissionMode RETRY_SELECTS_ALLOW_DUPLICATES
      The query will be retried if the SQL text starts with `SELECT` (case-insensitive, ignoring white space). If some rows were received they are going to be duplicated.
    • RETRY_ALL

      public static final ClientSqlResubmissionMode RETRY_ALL
      All queries will be retried after a failure.
  • Method Details

    • values

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