Object/Trait

play.api.libs.streams

Accumulator

Related Docs: trait Accumulator | package streams

Permalink

object Accumulator

Source
Accumulator.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Accumulator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[E, A](sink: Sink[E, Future[A]]): Accumulator[E, A]

    Permalink

    Create a new accumulator from the given Sink.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def done[A](a: Future[A]): Accumulator[Any, A]

    Permalink

    Create a done accumulator.

    Create a done accumulator.

    The underlying sink will cancel as soon as its onSubscribe method is called, and the materialized value will be the passed in future.

  8. def done[A](a: A): Accumulator[Any, A]

    Permalink

    Create a done accumulator.

    Create a done accumulator.

    The underlying sink will cancel as soon as its onSubscribe method is called, and the materialized value will be an immediately available future of a.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def flatten[E, A](future: Future[Accumulator[E, A]])(implicit materializer: Materializer): Accumulator[E, A]

    Permalink

    Flatten a future of an accumulator to an accumulator.

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def source[E]: Accumulator[E, Source[E, _]]

    Permalink

    Create an accumulator that forwards the stream fed into it to the source it produces.

    Create an accumulator that forwards the stream fed into it to the source it produces.

    This is useful for when you want to send the consumed stream to another API that takes a Source as input.

    Extreme care must be taken when using this accumulator - the source *must always* be materialized and consumed. If it isn't, this could lead to resource leaks and deadlocks upstream.

    returns

    An accumulator that forwards the stream to the produced source.

  20. def strict[E, A](strictHandler: (Option[E]) ⇒ Future[A], toSink: Sink[E, Future[A]]): Accumulator[E, A]

    Permalink

    Create an accumulator that is capable of handling the stream as a single, possibly empty, element, with a sink provided as a fallback if the stream can't be expressed as a single element.

    Create an accumulator that is capable of handling the stream as a single, possibly empty, element, with a sink provided as a fallback if the stream can't be expressed as a single element.

    This is intended to be able to be used to avoid a stream materialization for strict entities.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped