@@ -141,7 +141,7 @@ public ChunkedUploadProvider(@Nonnull final IUploadSession uploadSession,
141141 * @throws IOException the IO exception that occurred during upload
142142 */
143143 @ Nonnull
144- public java .util .concurrent .CompletableFuture <UploadType > futureUpload (@ Nullable final int chunkSize , @ Nullable final List <Option > options , @ Nullable final IProgressCallback progressCallback )
144+ public java .util .concurrent .CompletableFuture <UploadType > uploadAsync (@ Nullable final int chunkSize , @ Nullable final List <Option > options , @ Nullable final IProgressCallback progressCallback )
145145 throws IOException {
146146
147147 int internalChunkSize = chunkSize ;
@@ -213,9 +213,9 @@ private CompletableFuture<UploadType> failedFuture(ClientException ex) { // Comp
213213 * @throws IOException the IO exception that occurred during upload
214214 */
215215 @ Nonnull
216- public java .util .concurrent .CompletableFuture <UploadType > futureUpload ()
216+ public java .util .concurrent .CompletableFuture <UploadType > uploadAsync ()
217217 throws IOException {
218- return futureUpload (0 );
218+ return uploadAsync (0 );
219219 }
220220 /**
221221 * Uploads content to remote upload session based on the input stream
@@ -225,9 +225,9 @@ public java.util.concurrent.CompletableFuture<UploadType> futureUpload()
225225 * @throws IOException the IO exception that occurred during upload
226226 */
227227 @ Nonnull
228- public java .util .concurrent .CompletableFuture <UploadType > futureUpload (@ Nullable final int chunkSize )
228+ public java .util .concurrent .CompletableFuture <UploadType > uploadAsync (@ Nullable final int chunkSize )
229229 throws IOException {
230- return futureUpload (chunkSize , null );
230+ return uploadAsync (chunkSize , null );
231231 }
232232 /**
233233 * Uploads content to remote upload session based on the input stream
@@ -238,9 +238,9 @@ public java.util.concurrent.CompletableFuture<UploadType> futureUpload(@Nullable
238238 * @throws IOException the IO exception that occurred during upload
239239 */
240240 @ Nonnull
241- public java .util .concurrent .CompletableFuture <UploadType > futureUpload (@ Nullable final int chunkSize , @ Nullable final List <Option > options )
241+ public java .util .concurrent .CompletableFuture <UploadType > uploadAsync (@ Nullable final int chunkSize , @ Nullable final List <Option > options )
242242 throws IOException {
243- return futureUpload (chunkSize , options , null );
243+ return uploadAsync (chunkSize , options , null );
244244 }
245245
246246 /**
@@ -256,7 +256,7 @@ public java.util.concurrent.CompletableFuture<UploadType> futureUpload(@Nullable
256256 public UploadType upload (@ Nullable final int chunkSize , @ Nullable final List <Option > options , @ Nullable final IProgressCallback progressCallback )
257257 throws IOException {
258258 try {
259- return futureUpload (chunkSize , options , progressCallback ).get ();
259+ return uploadAsync (chunkSize , options , progressCallback ).get ();
260260 } catch (InterruptedException ex ) {
261261 throw new ClientException ("The request was interrupted" , ex );
262262 } catch (ExecutionException ex ) {
0 commit comments