Class B2RetryHandler

java.lang.Object
org.jclouds.http.handlers.BackoffLimitedRetryHandler
org.jclouds.b2.filters.B2RetryHandler
All Implemented Interfaces:
org.jclouds.http.HttpRequestFilter, org.jclouds.http.HttpRetryHandler, org.jclouds.http.IOExceptionRetryHandler

public final class B2RetryHandler extends org.jclouds.http.handlers.BackoffLimitedRetryHandler implements org.jclouds.http.HttpRequestFilter
  • Field Summary

    Fields inherited from class org.jclouds.http.handlers.BackoffLimitedRetryHandler

    INSTANCE

    Fields inherited from interface org.jclouds.http.HttpRetryHandler

    ALWAYS_RETRY, NEVER_RETRY

    Fields inherited from interface org.jclouds.http.IOExceptionRetryHandler

    ALWAYS_RETRY, NEVER_RETRY
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jclouds.http.HttpRequest
    filter(org.jclouds.http.HttpRequest request)
     
    boolean
    shouldRetryRequest(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
     

    Methods inherited from class org.jclouds.http.handlers.BackoffLimitedRetryHandler

    imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, imposeBackoffExponentialDelay, shouldRetryRequest

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • filter

      public org.jclouds.http.HttpRequest filter(org.jclouds.http.HttpRequest request) throws org.jclouds.http.HttpException
      Specified by:
      filter in interface org.jclouds.http.HttpRequestFilter
      Throws:
      org.jclouds.http.HttpException
    • shouldRetryRequest

      public boolean shouldRetryRequest(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
      Specified by:
      shouldRetryRequest in interface org.jclouds.http.HttpRetryHandler
      Overrides:
      shouldRetryRequest in class org.jclouds.http.handlers.BackoffLimitedRetryHandler