Class ServerSentEventSettings

java.lang.Object
akka.http.javadsl.settings.ServerSentEventSettings
Direct Known Subclasses:
ServerSentEventSettings

public abstract class ServerSentEventSettings extends Object
Public API but not intended for subclassing

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 Details

    • ServerSentEventSettings

      public ServerSentEventSettings()
  • Method Details

    • emitEmptyEvents

      public abstract boolean emitEmptyEvents()
      Should events with empty data field be passed to the application.
      Returns:
      (undocumented)
    • maxEventSize

      public abstract int maxEventSize()
      The maximum size for parsing server-sent events
      Returns:
      (undocumented)
    • maxLineSize

      public abstract int maxLineSize()
      The maximum size for parsing lines of a server-sent event
      Returns:
      (undocumented)
    • withEmitEmptyEvents

      public ServerSentEventSettings withEmitEmptyEvents(boolean newValue)
    • withLineLength

      public ServerSentEventSettings withLineLength(int newValue)
    • withMaxEventSize

      public ServerSentEventSettings withMaxEventSize(int newValue)