Tabnine Logo
ConnectionException.setAttempt
Code IndexAdd Tabnine to your IDE (free)

How to use
setAttempt
method
in
com.netflix.astyanax.connectionpool.exceptions.ConnectionException

Best Java code snippets using com.netflix.astyanax.connectionpool.exceptions.ConnectionException.setAttempt (Showing top 2 results out of 315)

origin: com.bazaarvoice.astyanax/astyanax-core

  private void informException(ConnectionException connectionException) throws ConnectionException {
    connectionException
      .setHost(getCurrentHost())
      .setLatency(System.currentTimeMillis() - startTime)
      .setAttempt(this.attemptCounter)
      .setLatencyWithPool(System.currentTimeMillis() - poolStartTime);

    if (connectionException instanceof IsRetryableException) {
      if (!canRetry()) {
        throw connectionException;
      }
    }
    else {
      // Most likely an operation error
      throw connectionException;
    }
  }        
}
origin: com.netflix.astyanax/astyanax-core

  private void informException(ConnectionException connectionException) throws ConnectionException {
    connectionException
      .setHost(getCurrentHost())
      .setLatency(System.currentTimeMillis() - startTime)
      .setAttempt(this.attemptCounter)
      .setLatencyWithPool(System.currentTimeMillis() - poolStartTime);

    if (connectionException instanceof IsRetryableException) {
      if (!canRetry()) {
        throw connectionException;
      }
    }
    else {
      // Most likely an operation error
      throw connectionException;
    }
  }        
}
com.netflix.astyanax.connectionpool.exceptionsConnectionExceptionsetAttempt

Popular methods of ConnectionException

  • getMessage
  • printStackTrace
  • setHost
  • setLatency
  • getHost
  • setLatencyWithPool

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JFileChooser (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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