Class ServerSentEventSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.ServerSentEventSettings
org.apache.pekko.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSentEventSettingsapply(com.typesafe.config.Config config) static ServerSentEventSettingsstatic ServerSentEventSettingsfromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) abstract intThe maximum size for parsing server-sent eventsabstract intThe maximum size for parsing lines of a server-sent eventwithEmitEmptyEvents(boolean newValue) withLineLength(int newValue) withMaxEventSize(int newValue) withOversizedEventStrategy(String newValue) withOversizedLineStrategy(String newValue) Methods inherited from class org.apache.pekko.http.javadsl.settings.ServerSentEventSettings
create, create, create, emitEmptyEvents, getOversizedEventStrategy, getOversizedEventStrategyEnum, getOversizedLineStrategy, getOversizedLineStrategyEnum, withOversizedEventStrategy, withOversizedLineStrategy
-
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: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)
-
oversizedLineStrategy
- Returns:
- (undocumented)
- Since:
- 1.3.0
-
oversizedEventStrategy
- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withMaxEventSize
- Overrides:
withMaxEventSizein classServerSentEventSettings
-
withLineLength
- Overrides:
withLineLengthin classServerSentEventSettings
-
withEmitEmptyEvents
- Overrides:
withEmitEmptyEventsin classServerSentEventSettings
-
withOversizedLineStrategy
- Overrides:
withOversizedLineStrategyin classServerSentEventSettings- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withOversizedLineStrategy
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withOversizedEventStrategy
- Overrides:
withOversizedEventStrategyin classServerSentEventSettings- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withOversizedEventStrategy
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-