Package akka.http.impl.settings
Class ServerSentEventSettingsImpl
java.lang.Object
akka.http.javadsl.settings.ServerSentEventSettings
akka.http.scaladsl.settings.ServerSentEventSettings
akka.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
ConstructorDescriptionServerSentEventSettingsImpl
(int maxEventSize, int maxLineSize, boolean emitEmptyEvents) -
Method Summary
Modifier and TypeMethodDescriptionstatic T
apply
(akka.actor.ActorSystem system) static T
apply
(com.typesafe.config.Config config) static T
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()
Methods inherited from class akka.http.scaladsl.settings.ServerSentEventSettings
withEmitEmptyEvents, withLineLength, withMaxEventSize
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)
-
-
Method Details
-
fromSubConfig
public static ServerSentEventSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) -
prefix
-
apply
public static T apply(akka.actor.ActorSystem system) -
apply
-
apply
public static T apply(com.typesafe.config.Config config) -
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)
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-