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 SummaryConstructors
- 
Method SummaryModifier 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.ServerSentEventSettingscreate, create, create, emitEmptyEvents, getOversizedEventStrategy, getOversizedEventStrategyEnum, getOversizedLineStrategy, getOversizedLineStrategyEnum, withOversizedEventStrategy, withOversizedLineStrategy
- 
Constructor Details- 
ServerSentEventSettingspublic ServerSentEventSettings()
 
- 
- 
Method Details- 
fromSubConfigpublic static ServerSentEventSettings fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) 
- 
apply
- 
apply
- 
maxEventSizepublic abstract int maxEventSize()Description copied from class:ServerSentEventSettingsThe maximum size for parsing server-sent events- Specified by:
- maxEventSizein class- ServerSentEventSettings
- Returns:
- (undocumented)
 
- 
maxLineSizepublic abstract int maxLineSize()Description copied from class:ServerSentEventSettingsThe maximum size for parsing lines of a server-sent event- Specified by:
- maxLineSizein class- ServerSentEventSettings
- Returns:
- (undocumented)
 
- 
oversizedLineStrategy- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
oversizedEventStrategy- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
withMaxEventSize- Overrides:
- withMaxEventSizein class- ServerSentEventSettings
 
- 
withLineLength- Overrides:
- withLineLengthin class- ServerSentEventSettings
 
- 
withEmitEmptyEvents- Overrides:
- withEmitEmptyEventsin class- ServerSentEventSettings
 
- 
withOversizedLineStrategy- Overrides:
- withOversizedLineStrategyin class- ServerSentEventSettings
- Parameters:
- newValue- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
withOversizedLineStrategy- Parameters:
- newValue- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
withOversizedEventStrategy- Overrides:
- withOversizedEventStrategyin class- ServerSentEventSettings
- Parameters:
- newValue- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
withOversizedEventStrategy- Parameters:
- newValue- (undocumented)
- Returns:
- (undocumented)
- Since:
- 1.3.0
 
 
-