Tabnine Logo
CassandraRequestExceptionHandler$RequestExceptionHandlerStrategy.shouldRetryOnDifferentHost
Code IndexAdd Tabnine to your IDE (free)

How to use
shouldRetryOnDifferentHost
method
in
com.palantir.atlasdb.keyvalue.cassandra.CassandraRequestExceptionHandler$RequestExceptionHandlerStrategy

Best Java code snippets using com.palantir.atlasdb.keyvalue.cassandra.CassandraRequestExceptionHandler$RequestExceptionHandlerStrategy.shouldRetryOnDifferentHost (Showing top 2 results out of 315)

origin: palantir/atlasdb

@VisibleForTesting
boolean shouldRetryOnDifferentHost(Exception ex, int numberOfAttempts, RequestExceptionHandlerStrategy strategy) {
  return strategy.shouldRetryOnDifferentHost(ex, maxTriesSameHost.get(), numberOfAttempts);
}
origin: com.palantir.atlasdb/atlasdb-cassandra

@VisibleForTesting
boolean shouldRetryOnDifferentHost(Exception ex, int numberOfAttempts, RequestExceptionHandlerStrategy strategy) {
  return strategy.shouldRetryOnDifferentHost(ex, maxTriesSameHost.get(), numberOfAttempts);
}
com.palantir.atlasdb.keyvalue.cassandraCassandraRequestExceptionHandler$RequestExceptionHandlerStrategyshouldRetryOnDifferentHost

Javadoc

Exceptions that cause a host to be blacklisted shouldn't be retried on another host. As number of retries are recorded per request, and we want the number of retries on that specific host to exceed a determined value before blacklisting.

Popular methods of CassandraRequestExceptionHandler$RequestExceptionHandlerStrategy

  • getBackoffPeriod
  • shouldBackoff

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JCheckBox (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now