Click or drag to resize

IRetryStrategy Interface

An interface describing the way in which a replicator will retry sending messages after receiving transient errors. Must be able to clone itself and have the clone be independent.

Namespace:  Couchbase.Lite.Util
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public interface IRetryStrategy

The IRetryStrategy type exposes the following members.

Properties
  NameDescription
Public propertyMaxRetries
Gets the maximum number of retries that this strategy allows
Public propertyRetriesRemaining
Gets the number of attempts left before giving up on the failed message.
Top
Methods
  NameDescription
Public methodCopy
Makes a copy of this retry strategy, set to its initial state
Public methodNextDelay
Gets the next delay to use before resending a failed message (useful in cases where it is not a fixed number e.g. exponential backoff).
Public methodReset
Resets the strategy to its initial state
Top
See Also