Class CloudStorageDataTransferApiImpl.ExecutorCreateSliceRetryPolicy
- java.lang.Object
-
- o.a.c.sidecar.client.shaded.client.retry.RetryPolicy
-
- org.apache.cassandra.spark.bulkwriter.cloudstorage.CloudStorageDataTransferApiImpl.ExecutorCreateSliceRetryPolicy
-
- Enclosing class:
- CloudStorageDataTransferApiImpl
public static class CloudStorageDataTransferApiImpl.ExecutorCreateSliceRetryPolicy extends o.a.c.sidecar.client.shaded.client.retry.RetryPolicySidecarClientby 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
-
-
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 voidonResponse(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)
-
-
-
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:
onResponsein classo.a.c.sidecar.client.shaded.client.retry.RetryPolicy
-
-