Package akka.http.javadsl.settings
Interface WebSocketSettings
- All Known Implementing Classes:
WebSocketSettings
,WebSocketSettingsImpl
public interface WebSocketSettings
Public API but not intended for subclassing
-
Method Summary
Modifier and TypeMethodDescriptionSupplier<akka.util.ByteString>
The provided supplier will be invoked for each new keep-alive frame that is sent.boolean
scala.concurrent.duration.Duration
withLogFrames
(boolean shouldLog) withPeriodicKeepAliveData
(Supplier<akka.util.ByteString> newValue) withPeriodicKeepAliveMaxIdle
(scala.concurrent.duration.Duration newValue) withPeriodicKeepAliveMode
(String newValue) withRandomFactoryFactory
(Supplier<Random> newValue)
-
Method Details
-
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
-
withPeriodicKeepAliveMode
-
withPeriodicKeepAliveMaxIdle
-
withPeriodicKeepAliveData
-
logFrames
boolean logFrames() -
withLogFrames
-