Package akka.http.javadsl.settings
Class ServerSentEventSettings
- java.lang.Object
-
- akka.http.javadsl.settings.ServerSentEventSettings
-
- Direct Known Subclasses:
ServerSentEventSettings
public abstract class ServerSentEventSettings extends java.lang.Object
Public API but not intended for subclassingOptions that are in "preview" or "early access" mode. These options may change and/or be removed within patch releases without early notice (e.g. by moving them into a stable supported place).
-
-
Constructor Summary
Constructors Constructor Description ServerSentEventSettings()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
emitEmptyEvents()
Should events with empty data field be passed to the application.abstract int
maxEventSize()
The maximum size for parsing server-sent eventsabstract int
maxLineSize()
The maximum size for parsing lines of a server-sent eventServerSentEventSettings
withEmitEmptyEvents(boolean newValue)
ServerSentEventSettings
withLineLength(int newValue)
ServerSentEventSettings
withMaxEventSize(int newValue)
-
-
-
Method Detail
-
emitEmptyEvents
public abstract boolean emitEmptyEvents()
Should events with empty data field be passed to the application.- Returns:
- (undocumented)
-
maxEventSize
public abstract int maxEventSize()
The maximum size for parsing server-sent events- Returns:
- (undocumented)
-
maxLineSize
public abstract int maxLineSize()
The maximum size for parsing lines of a server-sent event- Returns:
- (undocumented)
-
withEmitEmptyEvents
public ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
-
withLineLength
public ServerSentEventSettings withLineLength(int newValue)
-
withMaxEventSize
public ServerSentEventSettings withMaxEventSize(int newValue)
-
-