public abstract class ServerSentEventSettings extends ServerSentEventSettings
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 and Description |
---|
ServerSentEventSettings() |
Modifier and Type | Method and Description |
---|---|
static ServerSentEventSettings |
apply(com.typesafe.config.Config config) |
static ServerSentEventSettings |
apply(java.lang.String configOverrides) |
static ServerSentEventSettings |
fromSubConfig(com.typesafe.config.Config root,
com.typesafe.config.Config c) |
abstract int |
maxEventSize()
The maximum size for parsing server-sent events
|
abstract int |
maxLineSize()
The maximum size for parsing lines of a server-sent event
|
ServerSentEventSettings |
withEmitEmptyEvents(boolean newValue) |
ServerSentEventSettings |
withLineLength(int newValue) |
ServerSentEventSettings |
withMaxEventSize(int newValue) |
emitEmptyEvents
public static ServerSentEventSettings fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)
public static ServerSentEventSettings apply(com.typesafe.config.Config config)
public static ServerSentEventSettings apply(java.lang.String configOverrides)
public abstract int maxEventSize()
ServerSentEventSettings
maxEventSize
in class ServerSentEventSettings
public abstract int maxLineSize()
ServerSentEventSettings
maxLineSize
in class ServerSentEventSettings
public ServerSentEventSettings withMaxEventSize(int newValue)
withMaxEventSize
in class ServerSentEventSettings
public ServerSentEventSettings withLineLength(int newValue)
withLineLength
in class ServerSentEventSettings
public ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
withEmitEmptyEvents
in class ServerSentEventSettings