Table of Contents

Class RetryLimitPolicy

Namespace
Apache.Ignite
Assembly
Apache.Ignite.dll

Retry policy that returns true when Iteration is less than the specified RetryLimit, or the limit is zero or less.

public class RetryLimitPolicy : IRetryPolicy
Inheritance
RetryLimitPolicy
Implements
Derived
Inherited Members

Fields

DefaultRetryLimit

Default retry limit.

public const int DefaultRetryLimit = 16

Field Value

int

Properties

RetryLimit

Gets or sets the retry limit. 0 or less for no limit. Default is DefaultRetryLimit.

public int RetryLimit { get; set; }

Property Value

int

Methods

ShouldRetry(IRetryPolicyContext)

Gets a value indicating whether a client operation that has failed due to a connection issue should be retried.

public virtual bool ShouldRetry(IRetryPolicyContext context)

Parameters

context IRetryPolicyContext

Operation context.

Returns

bool

true if the operation should be retried on another connection, false otherwise.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.