RetryPolicy

io.ino.solrs.RetryPolicy
See theRetryPolicy companion object
abstract class RetryPolicy

Specifies a policy for retrying request failures.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def shouldRetry(e: Throwable, server: SolrServer, requestContext: RequestContext[_], lb: LoadBalancer): RetryDecision

Determines whether the framework should retry a request for the given exception, the failed server and the request context (provides information about previously failed requests, e.g. with previously failed servers).

Determines whether the framework should retry a request for the given exception, the failed server and the request context (provides information about previously failed requests, e.g. with previously failed servers).

Value parameters

e

The exception that caused the method to fail

lb

The configured load balancer

requestContext

The context of the request initiated by the client, e.g. provides the servers already tried

server

The server that was used for the failed request

Attributes