Class ServerSentEventSettingsImpl
java.lang.Object
org.apache.pekko.http.javadsl.settings.ServerSentEventSettings
org.apache.pekko.http.scaladsl.settings.ServerSentEventSettings
org.apache.pekko.http.impl.settings.ServerSentEventSettingsImpl
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
public final class ServerSentEventSettingsImpl
extends ServerSentEventSettings
implements scala.Product, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerSentEventSettingsImpl
(int maxEventSize, int maxLineSize, boolean emitEmptyEvents, OversizedSseStrategy oversizedLineStrategy, OversizedSseStrategy oversizedEventStrategy) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSentEventSettingsImpl
apply
(int maxEventSize, int maxLineSize, boolean emitEmptyEvents) boolean
Should events with empty data field be passed to the application.static ServerSentEventSettingsImpl
fromSubConfig
(com.typesafe.config.Config root, com.typesafe.config.Config c) int
The maximum size for parsing server-sent eventsint
The maximum size for parsing lines of a server-sent eventprotected static String
prefix()
withOversizedEventStrategy
(String newValue) withOversizedLineStrategy
(String newValue) Methods inherited from class org.apache.pekko.http.scaladsl.settings.ServerSentEventSettings
apply, apply, withEmitEmptyEvents, withLineLength, withMaxEventSize
Methods inherited from class org.apache.pekko.http.javadsl.settings.ServerSentEventSettings
create, create, create, getOversizedEventStrategy, getOversizedEventStrategyEnum, getOversizedLineStrategy, getOversizedLineStrategyEnum, withOversizedEventStrategy, withOversizedLineStrategy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator
-
Constructor Details
-
ServerSentEventSettingsImpl
public ServerSentEventSettingsImpl(int maxEventSize, int maxLineSize, boolean emitEmptyEvents, OversizedSseStrategy oversizedLineStrategy, OversizedSseStrategy oversizedEventStrategy)
-
-
Method Details
-
apply
public static ServerSentEventSettingsImpl apply(int maxEventSize, int maxLineSize, boolean emitEmptyEvents) -
fromSubConfig
public static ServerSentEventSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) -
prefix
-
maxEventSize
public int maxEventSize()Description copied from class:ServerSentEventSettings
The maximum size for parsing server-sent events- Specified by:
maxEventSize
in classServerSentEventSettings
- Returns:
- (undocumented)
-
maxLineSize
public 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)
-
emitEmptyEvents
public boolean emitEmptyEvents()Description copied from class:ServerSentEventSettings
Should events with empty data field be passed to the application.- Specified by:
emitEmptyEvents
in classServerSentEventSettings
- Returns:
- (undocumented)
-
oversizedLineStrategy
- Overrides:
oversizedLineStrategy
in classServerSentEventSettings
- Returns:
- (undocumented)
-
oversizedEventStrategy
- Overrides:
oversizedEventStrategy
in classServerSentEventSettings
- Returns:
- (undocumented)
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
withOversizedLineStrategy
- Overrides:
withOversizedLineStrategy
in classServerSentEventSettings
- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
-
withOversizedLineStrategy
- Overrides:
withOversizedLineStrategy
in classServerSentEventSettings
- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
-
withOversizedEventStrategy
- Overrides:
withOversizedEventStrategy
in classServerSentEventSettings
- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
-
withOversizedEventStrategy
- Overrides:
withOversizedEventStrategy
in classServerSentEventSettings
- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
-
oversizedLineStrategyAsString
-
oversizedEventStrategyAsString
-