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 APIJava APIJava APIbooleanscala.concurrent.duration.Durationscala.concurrent.duration.DurationMaximum allowable time between two consecutive frames being received.scala.concurrent.duration.DurationMaximum allowable time between two consecutive frames being sent.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) withReceiveIdleTimeout(Duration newValue) withReceiveIdleTimeout(scala.concurrent.duration.Duration newValue) withSendIdleTimeout(Duration newValue) withSendIdleTimeout(scala.concurrent.duration.Duration 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)
-
receiveIdleTimeout
scala.concurrent.duration.Duration receiveIdleTimeout()Maximum allowable time between two consecutive frames being received. If exceeded, the WebSocket flow is failed with apekko.http.scaladsl.model.ws.WebSocketIdleTimeoutException.Duration.Infdisables the check.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
getReceiveIdleTimeout
Duration getReceiveIdleTimeout()Java API- Returns:
- (undocumented)
- Since:
- 2.0.0
-
sendIdleTimeout
scala.concurrent.duration.Duration sendIdleTimeout()Maximum allowable time between two consecutive frames being sent. If exceeded, the WebSocket flow is failed with apekko.http.scaladsl.model.ws.WebSocketIdleTimeoutException.Duration.Infdisables the check.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
getSendIdleTimeout
Duration getSendIdleTimeout()Java API- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withRandomFactoryFactory
-
withPeriodicKeepAliveMode
-
withPeriodicKeepAliveMaxIdle
-
withPeriodicKeepAliveMaxIdle
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withPeriodicKeepAliveData
-
withReceiveIdleTimeout
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withReceiveIdleTimeout
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withSendIdleTimeout
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withSendIdleTimeout
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
logFrames
boolean logFrames() -
withLogFrames
-