Skip to content

Commit ccf2821

Browse files
committed
- updates future API surface following naming convention change
1 parent a39b80b commit ccf2821

17 files changed

Lines changed: 56 additions & 56 deletions

‎src/main/java/com/microsoft/graph/concurrency/ChunkedUploadProvider.java‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

‎src/main/java/com/microsoft/graph/http/BaseActionCollectionRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public BaseActionCollectionRequest(@Nonnull final String requestUrl,
7171
* @return a future with the result
7272
*/
7373
@Nonnull
74-
public java.util.concurrent.CompletableFuture<T3> futurePost() {
74+
public java.util.concurrent.CompletableFuture<T3> postAsync() {
7575
getBaseRequest().setHttpMethod(HttpMethod.POST);
7676
Object bodyToSend = null;
7777
try {
@@ -82,7 +82,7 @@ public java.util.concurrent.CompletableFuture<T3> futurePost() {
8282
return getBaseRequest()
8383
.getClient()
8484
.getHttpProvider()
85-
.futureSend(this,
85+
.sendAsync(this,
8686
responseCollectionClass,
8787
bodyToSend)
8888
.thenApply(r -> buildFromResponse(r));

‎src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ protected T2 send() throws ClientException {
111111
* @throws ClientException an exception occurs if there was an error while the request was sent
112112
*/
113113
@Nullable
114-
protected java.util.concurrent.CompletableFuture<T2> futureSend() throws ClientException {
114+
protected java.util.concurrent.CompletableFuture<T2> sendAsync() throws ClientException {
115115
baseRequest.setHttpMethod(HttpMethod.GET);
116-
return baseRequest.getClient().getHttpProvider().futureSend(this, responseCollectionClass, null);
116+
return baseRequest.getClient().getHttpProvider().sendAsync(this, responseCollectionClass, null);
117117
}
118118

119119
/**

‎src/main/java/com/microsoft/graph/http/BaseEntityCollectionRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public BaseEntityCollectionRequest(@Nonnull final String requestUrl,
7070
* @return a future with the result
7171
*/
7272
@Nonnull
73-
public java.util.concurrent.CompletableFuture<T3> futureGet() {
74-
return futureSend().thenApply(r -> buildFromResponse(r));
73+
public java.util.concurrent.CompletableFuture<T3> getAsync() {
74+
return sendAsync().thenApply(r -> buildFromResponse(r));
7575
}
7676
/**
7777
* Gets the collection of items

‎src/main/java/com/microsoft/graph/http/BaseFunctionCollectionRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public BaseFunctionCollectionRequest(@Nonnull final String requestUrl,
7070
* @return a future with the result
7171
*/
7272
@Nonnull
73-
public java.util.concurrent.CompletableFuture<T3> futureGet() {
74-
return futureSend().thenApply(r -> buildFromResponse(r));
73+
public java.util.concurrent.CompletableFuture<T3> getAsync() {
74+
return sendAsync().thenApply(r -> buildFromResponse(r));
7575
}
7676

7777
/**

‎src/main/java/com/microsoft/graph/http/BaseReferenceRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public BaseReferenceRequest(@Nonnull final String requestUrl, @Nonnull final IBa
5555
* @return a future with the result
5656
*/
5757
@Nonnull
58-
public java.util.concurrent.CompletableFuture<T> futureDelete() {
59-
return futureSend(HttpMethod.DELETE, null);
58+
public java.util.concurrent.CompletableFuture<T> deleteAsync() {
59+
return sendAsync(HttpMethod.DELETE, null);
6060
}
6161

6262
/**

‎src/main/java/com/microsoft/graph/http/BaseRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ public boolean getUseCaches() {
316316
*/
317317
@Nonnull
318318
@SuppressWarnings("unchecked")
319-
protected <T1> java.util.concurrent.CompletableFuture<T> futureSend(@Nonnull final HttpMethod method,
319+
protected <T1> java.util.concurrent.CompletableFuture<T> sendAsync(@Nonnull final HttpMethod method,
320320
@Nullable final T1 serializedObject) {
321321
this.method = method;
322-
return (java.util.concurrent.CompletableFuture<T>) client.getHttpProvider().futureSend(this, responseClass, serializedObject);
322+
return (java.util.concurrent.CompletableFuture<T>) client.getHttpProvider().sendAsync(this, responseClass, serializedObject);
323323
}
324324

325325
/**

‎src/main/java/com/microsoft/graph/http/BaseStreamRequest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public BaseStreamRequest(@Nonnull final String requestUrl,
7474
* @return a future with the result
7575
*/
7676
@Nonnull
77-
protected java.util.concurrent.CompletableFuture<InputStream> futureSend() {
77+
protected java.util.concurrent.CompletableFuture<InputStream> sendAsync() {
7878
baseRequest.setHttpMethod(HttpMethod.GET);
79-
return baseRequest.getClient().getHttpProvider().futureSend(this, InputStream.class, null);
79+
return baseRequest.getClient().getHttpProvider().sendAsync(this, InputStream.class, null);
8080
}
8181

8282
/**
@@ -99,9 +99,9 @@ protected InputStream send() throws ClientException {
9999
*/
100100
@SuppressWarnings("unchecked")
101101
@Nonnull
102-
protected java.util.concurrent.CompletableFuture<T> futureSend(@Nonnull final byte[] fileContents) {
102+
protected java.util.concurrent.CompletableFuture<T> sendAsync(@Nonnull final byte[] fileContents) {
103103
baseRequest.setHttpMethod(HttpMethod.PUT);
104-
return baseRequest.getClient().getHttpProvider().futureSend(this, (Class<T>) baseRequest.getResponseType(), fileContents);
104+
return baseRequest.getClient().getHttpProvider().sendAsync(this, (Class<T>) baseRequest.getResponseType(), fileContents);
105105
}
106106

107107
/**

‎src/main/java/com/microsoft/graph/http/BaseVoidActionCollectionRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public BaseVoidActionCollectionRequest(@Nonnull final String requestUrl,
7171
* @return a future with the result
7272
*/
7373
@Nonnull
74-
public java.util.concurrent.CompletableFuture<Void> futurePost() {
74+
public java.util.concurrent.CompletableFuture<Void> postAsync() {
7575
Object bodyToSend = null;
7676
try {
7777
bodyToSend = this.getClass().getField("body").get(this);
@@ -81,7 +81,7 @@ public java.util.concurrent.CompletableFuture<Void> futurePost() {
8181
return getBaseRequest()
8282
.getClient()
8383
.getHttpProvider()
84-
.futureSend(this,
84+
.sendAsync(this,
8585
Void.class,
8686
bodyToSend);
8787
}

‎src/main/java/com/microsoft/graph/http/BaseWithReferenceRequest.java‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public BaseWithReferenceRequest(@Nonnull final String requestUrl, @Nonnull final
6060
* @return a future with the result
6161
*/
6262
@Nonnull
63-
public java.util.concurrent.CompletableFuture<T> futurePost(@Nullable final T newEntity, @Nonnull final IJsonBackedObject payload) {
64-
return futureSend(HttpMethod.POST, payload);
63+
public java.util.concurrent.CompletableFuture<T> postAsync(@Nullable final T newEntity, @Nonnull final IJsonBackedObject payload) {
64+
return sendAsync(HttpMethod.POST, payload);
6565
}
6666

6767
/**
@@ -85,8 +85,8 @@ public T post(@Nonnull final T newEntity, @Nonnull final IJsonBackedObject paylo
8585
* @return a future with the result
8686
*/
8787
@Nonnull
88-
public java.util.concurrent.CompletableFuture<T> futureGet() {
89-
return futureSend(HttpMethod.GET, null);
88+
public java.util.concurrent.CompletableFuture<T> getAsync() {
89+
return sendAsync(HttpMethod.GET, null);
9090
}
9191

9292
/**
@@ -103,8 +103,8 @@ public T get() throws ClientException {
103103
* @return a future with the result
104104
*/
105105
@Nonnull
106-
public java.util.concurrent.CompletableFuture<T> futureDelete() {
107-
return futureSend(HttpMethod.DELETE, null);
106+
public java.util.concurrent.CompletableFuture<T> deleteAsync() {
107+
return sendAsync(HttpMethod.DELETE, null);
108108
}
109109

110110
/**
@@ -121,8 +121,8 @@ public void delete() throws ClientException {
121121
* @return a future with the result
122122
*/
123123
@Nonnull
124-
public java.util.concurrent.CompletableFuture<T> futurePatch(@Nonnull final T sourceObject) {
125-
return futureSend(HttpMethod.PATCH, sourceObject);
124+
public java.util.concurrent.CompletableFuture<T> patchAsync(@Nonnull final T sourceObject) {
125+
return sendAsync(HttpMethod.PATCH, sourceObject);
126126
}
127127

128128
/**

0 commit comments

Comments
 (0)