Package

de.heikoseeberger.akkasse

client

Permalink

package client

Visibility
  1. Public
  2. All

Type Members

  1. trait EventStreamUnmarshalling extends AnyRef

    Permalink

    Mixing in this trait lets a HttpEntity with a text/event-stream media type be unmarshallable to an EventStream.

Value Members

  1. object EventSource

    Permalink

    This stream processing stage establishes a quasi-continuous EventStream from the given URI.

    This stream processing stage establishes a quasi-continuous EventStream from the given URI.

    A single EventStream is obtained from the URI. Once completed, either normally or by failure, a next one is obtained thereby sending a Last-Evend-ID header if available. This continues in an endless cycle.

    The shape of this processing stage is a source of ServerSentEvent. To take effect it must be run. Progress (including termination) is controlled by the connected flow or sink, e.g. a retry delay can be implemented by streaming the materialized values of the handler via a throttle.

    + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
                                                  +---------------------+
    |                                             |       trigger       | |
                                                  +----------o----------+
    |                                                        |            |
                                               Option[String]|
    |                                                        v            |
                 Option[String]                   +----------o----------+
    |            +------------------------------->o        merge        | |
                 |                                +----------o----------+
    |            |                                           |            |
                 |                             Option[String]|
    |            |                                           v            |
      +----------o----------+                     +----------o----------+
    | | currentLastEventId  |                     |    eventStreams     | |
      +----------o----------+                     +----------o----------+
    |            ^                                           |            |
                 |           (EventSource, Future[LastEvent])|
    |            |                                           v            |
                 |                                +----------o----------+
    |            +--------------------------------o        unzip        | |
                 Future[LastEvent]                +----------o----------+
    |                                                        |            |
                                                  EventSource|
    |                                                        v            |
                                                  +----------o----------+
    |                                  +----------o       flatten       | |
                        ServerSentEvent|          +---------------------+
    |                                  v                                  |
     - - - - - - - - - - - - - - - - - o - - - - - - - - - - - - - - - - -
  2. object EventStreamParser

    Permalink
  3. object EventStreamUnmarshalling extends EventStreamUnmarshalling

    Permalink

    Importing EventStreamUnmarshalling.feu lets a HttpEntity with a text/event-stream media type be unmarshallable to an EventStream.

Deprecated Value Members

  1. object EventStreamClient

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0-M6) Use EventSource instead!

Ungrouped