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) |
emitEmptyEventspublic 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()
ServerSentEventSettingsmaxEventSize in class ServerSentEventSettingspublic abstract int maxLineSize()
ServerSentEventSettingsmaxLineSize in class ServerSentEventSettingspublic ServerSentEventSettings withMaxEventSize(int newValue)
withMaxEventSize in class ServerSentEventSettingspublic ServerSentEventSettings withLineLength(int newValue)
withLineLength in class ServerSentEventSettingspublic ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
withEmitEmptyEvents in class ServerSentEventSettings