Class EventStreamUnmarshalling$


  • public class EventStreamUnmarshalling$
    extends java.lang.Object
    Using fromEventsStream lets a HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
    • Field Detail

      • MODULE$

        public static final EventStreamUnmarshalling$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • EventStreamUnmarshalling$

        public EventStreamUnmarshalling$()
    • Method Detail

      • fromEventsStream

        public Unmarshaller<HttpEntity,​akka.stream.javadsl.Source<ServerSentEvent,​akka.NotUsed>> fromEventsStream​(akka.actor.ActorSystem system)
        Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • fromEventsStream

        public Unmarshaller<HttpEntity,​akka.stream.javadsl.Source<ServerSentEvent,​akka.NotUsed>> fromEventsStream​(ServerSentEventSettings settings)
        Lets an HttpEntity with a text/event-stream media type be unmarshalled to a source of ServerSentEvents.
        Parameters:
        settings - overrides the default unmarshalling behavior.
        Returns:
        (undocumented)
      • fromEventStream

        public Unmarshaller<HttpEntity,​akka.stream.javadsl.Source<ServerSentEvent,​akka.NotUsed>> fromEventStream()
        Deprecated.
        Binary compatibility method. Invocations should have an implicit ActorSystem in scope to provide access to configuration. Since 10.1.8.