Package akka.http.javadsl.model
Class ResponseFuture
- java.lang.Object
-
- akka.http.javadsl.model.ResponseFuture
-
- All Implemented Interfaces:
RequestResponseAssociation
,RequestResponseAssociation
public final class ResponseFuture extends java.lang.Object implements RequestResponseAssociation
An association for completing a future when the response arrives.
-
-
Constructor Summary
Constructors Constructor Description ResponseFuture(java.util.concurrent.CompletableFuture<HttpResponse> future)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseFuture
apply(java.util.concurrent.CompletableFuture<HttpResponse> promise)
java.util.concurrent.CompletableFuture<HttpResponse>
future()
static AttributeKey<ResponseFuture>
KEY()
-
-
-
Constructor Detail
-
ResponseFuture
public ResponseFuture(java.util.concurrent.CompletableFuture<HttpResponse> future)
-
-
Method Detail
-
KEY
public static AttributeKey<ResponseFuture> KEY()
-
apply
public static ResponseFuture apply(java.util.concurrent.CompletableFuture<HttpResponse> promise)
-
future
public java.util.concurrent.CompletableFuture<HttpResponse> future()
-
-