public interface Response
HttpResponse or an RpcResponse.| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<?> |
closeFuture()
Deprecated.
Use
whenComplete(). |
default CompletableFuture<?> |
completionFuture()
Deprecated.
Use
whenComplete(). |
default CompletableFuture<?> |
whenComplete()
Returns a
CompletableFuture which completes when
1) the response stream has been closed (the StreamMessage has been completed) or
2) the result value is set (the CompletionStage has completed.) |
@Deprecated default CompletableFuture<?> closeFuture()
whenComplete().CompletableFuture which completes when
1) the response stream has been closed (the StreamMessage has been completed) or
2) the result value is set (the CompletionStage has completed.)@Deprecated default CompletableFuture<?> completionFuture()
whenComplete().CompletableFuture which completes when
1) the response stream has been closed (the StreamMessage has been completed) or
2) the result value is set (the CompletionStage has completed.)default CompletableFuture<?> whenComplete()
CompletableFuture which completes when
1) the response stream has been closed (the StreamMessage has been completed) or
2) the result value is set (the CompletionStage has completed.)Copyright © 2020 LeanCloud. All rights reserved.