Class CloudStorageDataTransferApiImpl.ExecutorCreateSliceRetryPolicy

  • Enclosing class:
    CloudStorageDataTransferApiImpl

    public static class CloudStorageDataTransferApiImpl.ExecutorCreateSliceRetryPolicy
    extends o.a.c.sidecar.client.shaded.client.retry.RetryPolicy
    SidecarClient by default retries till 200 Http response. But for create slice endpoint at task level, we want to wait only till 201 Http response, hence using a custom retry policy
    • Field Summary

      • Fields inherited from class o.a.c.sidecar.client.shaded.client.retry.RetryPolicy

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutorCreateSliceRetryPolicy​(o.a.c.sidecar.client.shaded.client.SidecarClient sidecarClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onResponse​(java.util.concurrent.CompletableFuture<o.a.c.sidecar.client.shaded.client.HttpResponse> completableFuture, o.a.c.sidecar.client.shaded.common.request.Request request, o.a.c.sidecar.client.shaded.client.HttpResponse httpResponse, java.lang.Throwable throwable, int attempts, boolean canRetryOnADifferentHost, o.a.c.sidecar.client.shaded.client.retry.RetryAction retryAction)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutorCreateSliceRetryPolicy

        public ExecutorCreateSliceRetryPolicy​(o.a.c.sidecar.client.shaded.client.SidecarClient sidecarClient)
    • Method Detail

      • onResponse

        public void onResponse​(java.util.concurrent.CompletableFuture<o.a.c.sidecar.client.shaded.client.HttpResponse> completableFuture,
                               o.a.c.sidecar.client.shaded.common.request.Request request,
                               o.a.c.sidecar.client.shaded.client.HttpResponse httpResponse,
                               java.lang.Throwable throwable,
                               int attempts,
                               boolean canRetryOnADifferentHost,
                               o.a.c.sidecar.client.shaded.client.retry.RetryAction retryAction)
        Specified by:
        onResponse in class o.a.c.sidecar.client.shaded.client.retry.RetryPolicy