Class UploadCompleteFunc

java.lang.Object
org.filestack.internal.UploadCompleteFunc
All Implemented Interfaces:
Callable<org.filestack.internal.Prog>

public class UploadCompleteFunc extends Object implements Callable<org.filestack.internal.Prog>
Function to be passed to Flowable.fromCallable(Callable). Handles completing a multipart upload, gets metadata for final file. In intelligent ingestion mode the UploadService.complete(Map) call may return a 202 response while the parts are still processing. In this case the RetryNetworkFunc will handle it like a failure and automatically retry.
  • Method Details

    • call

      public org.filestack.internal.Prog call() throws Exception
      Specified by:
      call in interface Callable<org.filestack.internal.Prog>
      Throws:
      Exception