Package org.apache.ignite.client
Class RetryReadPolicy
java.lang.Object
org.apache.ignite.client.RetryLimitPolicy
org.apache.ignite.client.RetryReadPolicy
- All Implemented Interfaces:
RetryPolicy
Retry policy that returns true for all read-only operations that do not modify data.
-
Field Summary
Fields inherited from class org.apache.ignite.client.RetryLimitPolicy
DFLT_RETRY_LIMIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRetry(RetryPolicyContext context) Gets a value indicating whether a client operation that has failed due to a connection issue should be retried.Methods inherited from class org.apache.ignite.client.RetryLimitPolicy
retryLimit, retryLimit
-
Constructor Details
-
RetryReadPolicy
public RetryReadPolicy()
-
-
Method Details
-
shouldRetry
Gets a value indicating whether a client operation that has failed due to a connection issue should be retried.If an implementation of this method throws an exception, the operation will be failed with that exception. No more retries will be attempted.
- Specified by:
shouldRetryin interfaceRetryPolicy- Overrides:
shouldRetryin classRetryLimitPolicy- Parameters:
context- Context.- Returns:
trueif the operation should be retried on another connection,falseotherwise.
-