Package akka.http.scaladsl.settings
Class ServerSentEventSettings
java.lang.Object
akka.http.javadsl.settings.ServerSentEventSettings
akka.http.scaladsl.settings.ServerSentEventSettings
- Direct Known Subclasses:
ServerSentEventSettingsImpl
Public API but not intended for subclassing
Options 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSentEventSettings
apply
(com.typesafe.config.Config config) static ServerSentEventSettings
static ServerSentEventSettings
fromSubConfig
(com.typesafe.config.Config root, com.typesafe.config.Config c) abstract int
The maximum size for parsing server-sent eventsabstract int
The maximum size for parsing lines of a server-sent eventwithEmitEmptyEvents
(boolean newValue) withLineLength
(int newValue) withMaxEventSize
(int newValue) Methods inherited from class akka.http.javadsl.settings.ServerSentEventSettings
emitEmptyEvents
-
Constructor Details
-
ServerSentEventSettings
public ServerSentEventSettings()
-
-
Method Details
-
fromSubConfig
public static ServerSentEventSettings fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) -
apply
-
apply
-
maxEventSize
public abstract int maxEventSize()Description copied from class:ServerSentEventSettings
The maximum size for parsing server-sent events- Specified by:
maxEventSize
in classServerSentEventSettings
- Returns:
- (undocumented)
-
maxLineSize
public abstract int maxLineSize()Description copied from class:ServerSentEventSettings
The maximum size for parsing lines of a server-sent event- Specified by:
maxLineSize
in classServerSentEventSettings
- Returns:
- (undocumented)
-
withMaxEventSize
- Overrides:
withMaxEventSize
in classServerSentEventSettings
-
withLineLength
- Overrides:
withLineLength
in classServerSentEventSettings
-
withEmitEmptyEvents
- Overrides:
withEmitEmptyEvents
in classServerSentEventSettings
-