Class RetryReadPolicy

java.lang.Object
org.apache.ignite.client.RetryLimitPolicy
org.apache.ignite.client.RetryReadPolicy
All Implemented Interfaces:
RetryPolicy

public class RetryReadPolicy extends RetryLimitPolicy
Retry policy that returns true for all read-only operations that do not modify data.
  • Constructor Details

    • RetryReadPolicy

      public RetryReadPolicy()
  • Method Details

    • shouldRetry

      public boolean shouldRetry(RetryPolicyContext context)
      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:
      shouldRetry in interface RetryPolicy
      Overrides:
      shouldRetry in class RetryLimitPolicy
      Parameters:
      context - Context.
      Returns:
      true if the operation should be retried on another connection, false otherwise.