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 abstract class ServerSentEventSettings extends ServerSentEventSettings
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 Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ServerSentEventSettings
apply(com.typesafe.config.Config config)
static ServerSentEventSettings
apply(java.lang.String configOverrides)
static ServerSentEventSettings
fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)
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)
-
Methods inherited from class akka.http.javadsl.settings.ServerSentEventSettings
emitEmptyEvents
-
-
-
-
Method Detail
-
fromSubConfig
public static ServerSentEventSettings fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)
-
apply
public static ServerSentEventSettings apply(com.typesafe.config.Config config)
-
apply
public static ServerSentEventSettings apply(java.lang.String configOverrides)
-
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
public ServerSentEventSettings withMaxEventSize(int newValue)
- Overrides:
withMaxEventSize
in classServerSentEventSettings
-
withLineLength
public ServerSentEventSettings withLineLength(int newValue)
- Overrides:
withLineLength
in classServerSentEventSettings
-
withEmitEmptyEvents
public ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
- Overrides:
withEmitEmptyEvents
in classServerSentEventSettings
-
-