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 ServerSentEventSettingsapply(com.typesafe.config.Config config)static ServerSentEventSettingsapply(java.lang.String configOverrides)static ServerSentEventSettingsfromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)abstract intmaxEventSize()The maximum size for parsing server-sent eventsabstract intmaxLineSize()The maximum size for parsing lines of a server-sent eventServerSentEventSettingswithEmitEmptyEvents(boolean newValue)ServerSentEventSettingswithLineLength(int newValue)ServerSentEventSettingswithMaxEventSize(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:ServerSentEventSettingsThe maximum size for parsing server-sent events- Specified by:
maxEventSizein classServerSentEventSettings- Returns:
- (undocumented)
-
maxLineSize
public abstract int maxLineSize()
Description copied from class:ServerSentEventSettingsThe maximum size for parsing lines of a server-sent event- Specified by:
maxLineSizein classServerSentEventSettings- Returns:
- (undocumented)
-
withMaxEventSize
public ServerSentEventSettings withMaxEventSize(int newValue)
- Overrides:
withMaxEventSizein classServerSentEventSettings
-
withLineLength
public ServerSentEventSettings withLineLength(int newValue)
- Overrides:
withLineLengthin classServerSentEventSettings
-
withEmitEmptyEvents
public ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
- Overrides:
withEmitEmptyEventsin classServerSentEventSettings
-
-