Package com.hazelcast.client.config
Enum Class ClientSqlResubmissionMode
- All Implemented Interfaces:
Serializable
,Comparable<ClientSqlResubmissionMode>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf a query fails, the failure is immediately forwarded to the caller.All queries will be retried after a failure.The query will be retried if: no rows were received yet the SQL text starts with `SELECT` (case-insensitive, ignoring white space)The query will be retried if the SQL text starts with `SELECT` (case-insensitive, ignoring white space). -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientSqlResubmissionMode
Returns the enum constant of this class with the specified name.static ClientSqlResubmissionMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
If a query fails, the failure is immediately forwarded to the caller. -
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
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
All queries will be retried after a failure.
-
-
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
-