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 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

    Modifier and Type
    Method
    Description
    CompletionStage<akka.Done>
    This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).
    scala.concurrent.Future<akka.Done>
    This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiscardedEntity

      public DiscardedEntity(scala.concurrent.Future<akka.Done> f)
  • Method Details

    • completionStage

      public CompletionStage<akka.Done> completionStage()
      This future completes successfully once the underlying entity stream has been successfully drained (and fails otherwise).
      Specified by:
      completionStage in interface HttpEntity.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 interface HttpEntity.DiscardedEntity
      Returns:
      (undocumented)