Interface WebSocketSettings
- All Known Implementing Classes:
WebSocketSettings
,WebSocketSettingsImpl
public interface WebSocketSettings
Public API but not intended for subclassing
-
Method Summary
Modifier and TypeMethodDescriptionSupplier<org.apache.pekko.util.ByteString>
The provided supplier will be invoked for each new keep-alive frame that is sent.Java APIboolean
scala.concurrent.duration.Duration
withLogFrames
(boolean shouldLog) withPeriodicKeepAliveData
(Supplier<org.apache.pekko.util.ByteString> newValue) withPeriodicKeepAliveMaxIdle
(Duration 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() -
getPeriodicKeepAliveMaxIdle
Duration getPeriodicKeepAliveMaxIdle()Java API- Returns:
- (undocumented)
- Since:
- 1.3.0
-
getPeriodicKeepAliveData
Supplier<org.apache.pekko.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
-
withPeriodicKeepAliveMaxIdle
- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withPeriodicKeepAliveData
-
logFrames
boolean logFrames() -
withLogFrames
-