Interface WebSocketSettings

All Known Implementing Classes:
WebSocketSettings, WebSocketSettingsImpl

public interface WebSocketSettings
Public API but not intended for subclassing
  • Method Details

    • getRandomFactory

      Supplier<Random> getRandomFactory()
    • periodicKeepAliveMode

      String periodicKeepAliveMode()
    • periodicKeepAliveMaxIdle

      scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
    • getPeriodicKeepAliveData

      Supplier<akka.util.ByteString> getPeriodicKeepAliveData()
      The provided supplier will be invoked for each new keep-alive frame that is sent. The ByteString will be included in the Ping or Pong frame sent as heartbeat, so keep in mind to keep it relatively small, in order not to make the frames too bloated.
      Returns:
      (undocumented)
    • withRandomFactoryFactory

      WebSocketSettings withRandomFactoryFactory(Supplier<Random> newValue)
    • withPeriodicKeepAliveMode

      WebSocketSettings withPeriodicKeepAliveMode(String newValue)
    • withPeriodicKeepAliveMaxIdle

      WebSocketSettings withPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue)
    • withPeriodicKeepAliveData

      WebSocketSettings withPeriodicKeepAliveData(Supplier<akka.util.ByteString> newValue)
    • logFrames

      boolean logFrames()
    • withLogFrames

      WebSocketSettings withLogFrames(boolean shouldLog)