package client
- Alphabetic
- Public
- All
Type Members
-
trait
EventStreamUnmarshalling
extends AnyRef
Mixing in this trait lets a
HttpEntitywith atext/event-streammedia type be unmarshallable to anEventStream.
Value Members
-
object
EventSource
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 - - - - - - - - - - - - - - - - - - object EventStreamParser
-
object
EventStreamUnmarshalling
extends EventStreamUnmarshalling
Importing EventStreamUnmarshalling.feu lets a
HttpEntitywith atext/event-streammedia type be unmarshallable to anEventStream.
Deprecated Value Members
-
object
EventStreamClient
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0-M6) Use EventSource instead!