Package akka.http.scaladsl.model
Class HttpEntity.DiscardedEntity
- java.lang.Object
-
- akka.http.scaladsl.model.HttpEntity.DiscardedEntity
-
- All Implemented Interfaces:
HttpEntity.DiscardedEntity
,HttpMessage.DiscardedEntity
- Enclosing interface:
- HttpEntity
public static final class HttpEntity.DiscardedEntity extends java.lang.Object implements HttpMessage.DiscardedEntity
Represents the currently being-drained HTTP Entity which triggers completion of the contained Future once the entity has been drained for the given HttpMessage completely.
-
-
Constructor Summary
Constructors Constructor Description DiscardedEntity(scala.concurrent.Future<akka.Done> f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<akka.Done>
completionStage()
This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).scala.concurrent.Future<akka.Done>
future()
This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).
-
-
-
Method Detail
-
completionStage
public java.util.concurrent.CompletionStage<akka.Done> completionStage()
This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).- Specified by:
completionStage
in interfaceHttpEntity.DiscardedEntity
- Returns:
- (undocumented)
-
future
public scala.concurrent.Future<akka.Done> future()
This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).- Specified by:
future
in interfaceHttpEntity.DiscardedEntity
- Returns:
- (undocumented)
-
-