Click or drag to resize
LoggingRetryPolicy Class
A retry policy that wraps another policy, logging the decision made by its sub-policy.

Note that this policy only log the Ignore and Retry decisions (since Rethrow decisions just amount to propagate the cassandra exception). The logging is done at the Info level.

Inheritance Hierarchy
SystemObject
  CassandraLoggingRetryPolicy

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.4.0
Syntax
C#
public class LoggingRetryPolicy : IExtendedRetryPolicy, 
	IRetryPolicy

The LoggingRetryPolicy type exposes the following members.

Constructors
  NameDescription
Public methodLoggingRetryPolicy
Creates a new IExtendedRetryPolicy that logs the decision of the provided policy.
Top
Methods
  NameDescription
Public methodOnReadTimeout
Public methodOnRequestError
Defines whether to retry and at which consistency level on an unexpected error.

This method might be invoked in the following situations:

  1. On a client timeout, while waiting for the server response (see ReadTimeoutMillis).
  2. On a socket error (socket closed, etc.).
  3. When the contacted host replies with an OVERLOADED error or a SERVER_ERROR.

Note that when such an error occurs, there is no guarantee that the mutation has been applied server-side or not.

Public methodOnUnavailable
Public methodOnWriteTimeout
Top
See Also