Module Moped::Failover::Retry
In: lib/moped/failover/retry.rb

Retry is for the case when we get exceptions around the connection, and want to make another attempt to try and resolve the issue.

@since 2.0.0

Methods

execute  

Public Instance methods

Executes the failover strategy. In the case of retry, we disconnect and reconnect, then try the operation one more time.

@example Execute the retry strategy.

  Moped::Failover::Retry.execute(exception, node)

@param [ Exception ] exception The raised exception. @param [ Node ] node The node the exception got raised on.

@raise [ Errors::ConnectionFailure ] If the retry fails.

@return [ Object ] The result of the block yield.

@since 2.0.0

[Validate]