Class ServerSentEventParser
java.lang.Object
org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<S,org.apache.pekko.NotUsed>
org.apache.pekko.stream.stage.GraphStage<org.apache.pekko.stream.FlowShape<String,ServerSentEvent>>
org.apache.pekko.http.scaladsl.unmarshalling.sse.ServerSentEventParser
- All Implemented Interfaces:
org.apache.pekko.stream.Graph<org.apache.pekko.stream.FlowShape<String,ServerSentEvent>, org.apache.pekko.NotUsed>
public final class ServerSentEventParser
extends org.apache.pekko.stream.stage.GraphStage<org.apache.pekko.stream.FlowShape<String,ServerSentEvent>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classNested classes/interfaces inherited from interface org.apache.pekko.stream.Graph
org.apache.pekko.stream.Graph.GraphMapMatVal<S extends org.apache.pekko.stream.Shape,M extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionServerSentEventParser(int maxEventSize, boolean emitEmptyEvents) ServerSentEventParser(int maxEventSize, boolean emitEmptyEvents, OversizedSseStrategy oversizedStrategy) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.stream.stage.GraphStageLogiccreateLogic(org.apache.pekko.stream.Attributes attributes) org.apache.pekko.stream.FlowShape<String,ServerSentEvent> shape()Methods inherited from class org.apache.pekko.stream.stage.GraphStage
createLogicAndMaterializedValueMethods inherited from class org.apache.pekko.stream.stage.GraphStageWithMaterializedValue
addAttributes, async, async, async, createLogicAndMaterializedValue, getAttributes, initialAttributes, named, traversalBuilder, withAttributes
-
Constructor Details
-
ServerSentEventParser
public ServerSentEventParser(int maxEventSize, boolean emitEmptyEvents, OversizedSseStrategy oversizedStrategy) -
ServerSentEventParser
public ServerSentEventParser(int maxEventSize, boolean emitEmptyEvents)
-
-
Method Details
-
shape
-
createLogic
public org.apache.pekko.stream.stage.GraphStageLogic createLogic(org.apache.pekko.stream.Attributes attributes) - Specified by:
createLogicin classorg.apache.pekko.stream.stage.GraphStage<org.apache.pekko.stream.FlowShape<String,ServerSentEvent>>
-