public abstract class ServerSentEventSettings
extends java.lang.Object
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 | create(org.apache.pekko.actor.ActorSystem system)Creates an instance of ServerSentEventSettings using the configuration provided by the given ActorSystem. | 
| static ServerSentEventSettings | create(com.typesafe.config.Config config)Creates an instance of ServerSentEventSettings using the given Config. | 
| static ServerSentEventSettings | create(java.lang.String configOverrides)Create an instance of ServerSentEventSettings using the given String of config overrides to override
 settings set in the class loader of this class. | 
| abstract boolean | emitEmptyEvents()Should events with empty data field be passed to the application. | 
| java.lang.String | getOversizedEventStrategy()How to handle events that exceed max-event-size limit. | 
| OversizedSseStrategy | getOversizedEventStrategyEnum()How to handle events that exceed max-event-size limit. | 
| java.lang.String | getOversizedLineStrategy()How to handle lines that exceed max-line-size limit. | 
| OversizedSseStrategy | getOversizedLineStrategyEnum()How to handle lines that exceed max-line-size limit. | 
| 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) | 
| ServerSentEventSettings | withOversizedEventStrategy(OversizedSseStrategy newValue) | 
| ServerSentEventSettings | withOversizedEventStrategy(java.lang.String newValue) | 
| ServerSentEventSettings | withOversizedLineStrategy(OversizedSseStrategy newValue) | 
| ServerSentEventSettings | withOversizedLineStrategy(java.lang.String newValue) | 
public static ServerSentEventSettings create(org.apache.pekko.actor.ActorSystem system)
system - (undocumented)public static ServerSentEventSettings create(com.typesafe.config.Config config)
config - (undocumented)public static ServerSentEventSettings create(java.lang.String configOverrides)
configOverrides - (undocumented)public abstract int maxEventSize()
public abstract int maxLineSize()
public abstract boolean emitEmptyEvents()
public java.lang.String getOversizedLineStrategy()
public OversizedSseStrategy getOversizedLineStrategyEnum()
public java.lang.String getOversizedEventStrategy()
public OversizedSseStrategy getOversizedEventStrategyEnum()
public ServerSentEventSettings withMaxEventSize(int newValue)
public ServerSentEventSettings withLineLength(int newValue)
public ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
public ServerSentEventSettings withOversizedLineStrategy(java.lang.String newValue)
newValue - (undocumented)public ServerSentEventSettings withOversizedLineStrategy(OversizedSseStrategy newValue)
newValue - (undocumented)public ServerSentEventSettings withOversizedEventStrategy(java.lang.String newValue)
newValue - (undocumented)public ServerSentEventSettings withOversizedEventStrategy(OversizedSseStrategy newValue)
newValue - (undocumented)