public class EventStreamParser$
extends java.lang.Object
ServerSentEvents.
 This API is made for use in non-pekko-http clients, like Play's WSClient.
| Modifier and Type | Field and Description | 
|---|---|
| static EventStreamParser$ | MODULE$Static reference to the singleton instance of this Scala object. | 
| Constructor and Description | 
|---|
| EventStreamParser$() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> | apply(int maxLineSize,
     int maxEventSize)Flow that converts raw byte string input into  ServerSentEvents. | 
| org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> | apply(int maxLineSize,
     int maxEventSize,
     boolean emitEmptyEvents)Flow that converts raw byte string input into  ServerSentEvents. | 
| org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> | apply(int maxLineSize,
     int maxEventSize,
     boolean emitEmptyEvents,
     OversizedSseStrategy oversizedStrategy)Flow that converts raw byte string input into  ServerSentEvents. | 
| org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> | apply(int maxLineSize,
     int maxEventSize,
     boolean emitEmptyEvents,
     OversizedSseStrategy oversizedLineStrategy,
     OversizedSseStrategy oversizedEventStrategy)Flow that converts raw byte string input into  ServerSentEvents. | 
| org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> | apply(int maxLineSize,
     int maxEventSize,
     boolean emitEmptyEvents,
     java.lang.String oversizedStrategy)Flow that converts raw byte string input into  ServerSentEvents. | 
public static final EventStreamParser$ MODULE$
public org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> apply(int maxLineSize, int maxEventSize)
ServerSentEvents.
 This API is made for use in non-pekko-http clients, like Play's WSClient.
maxLineSize - The maximum size of a line for the event Stream parsermaxEventSize - The maximum size of a server-sent event for the event Stream parserpublic org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> apply(int maxLineSize, int maxEventSize, boolean emitEmptyEvents)
ServerSentEvents.
 This API is made for use in non-pekko-http clients, like Play's WSClient.
maxLineSize - The maximum size of a line for the event Stream parsermaxEventSize - The maximum size of a server-sent event for the event Stream parseremitEmptyEvents - Should the parser emit events with empty data fieldpublic org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> apply(int maxLineSize, int maxEventSize, boolean emitEmptyEvents, java.lang.String oversizedStrategy)
ServerSentEvents.
 This API is made for use in non-pekko-http clients, like Play's WSClient.
maxLineSize - The maximum size of a line for the event Stream parsermaxEventSize - The maximum size of a server-sent event for the event Stream parseremitEmptyEvents - Should the parser emit events with empty data fieldoversizedStrategy - How to handle messages that exceed max-line-sizepublic org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> apply(int maxLineSize, int maxEventSize, boolean emitEmptyEvents, OversizedSseStrategy oversizedStrategy)
ServerSentEvents.
 This API is made for use in non-pekko-http clients, like Play's WSClient.
maxLineSize - The maximum size of a line for the event Stream parsermaxEventSize - The maximum size of a server-sent event for the event Stream parseremitEmptyEvents - Should the parser emit events with empty data fieldoversizedStrategy - How to handle messages that exceed max-line-size and max-event-sizepublic org.apache.pekko.stream.scaladsl.Flow<org.apache.pekko.util.ByteString,ServerSentEvent,org.apache.pekko.NotUsed> apply(int maxLineSize, int maxEventSize, boolean emitEmptyEvents, OversizedSseStrategy oversizedLineStrategy, OversizedSseStrategy oversizedEventStrategy)
ServerSentEvents.
 This API is made for use in non-pekko-http clients, like Play's WSClient.
maxLineSize - The maximum size of a line for the event Stream parsermaxEventSize - The maximum size of a server-sent event for the event Stream parseremitEmptyEvents - Should the parser emit events with empty data fieldoversizedLineStrategy - How to handle lines that exceed max-line-sizeoversizedEventStrategy - How to handle events that exceed max-event-size