Interface WebSocketSettings
- All Known Implementing Classes:
- WebSocketSettings,- WebSocketSettingsImpl
public interface WebSocketSettings
Public API but not intended for subclassing
- 
Method SummaryModifier and TypeMethodDescriptionSupplier<org.apache.pekko.util.ByteString>The provided supplier will be invoked for each new keep-alive frame that is sent.Java APIbooleanscala.concurrent.duration.DurationwithLogFrames(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
- 
periodicKeepAliveModeString periodicKeepAliveMode()
- 
periodicKeepAliveMaxIdlescala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
- 
getPeriodicKeepAliveMaxIdleDuration getPeriodicKeepAliveMaxIdle()Java API- Returns:
- (undocumented)
- Since:
- 1.3.0
 
- 
getPeriodicKeepAliveDataSupplier<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
- 
logFramesboolean logFrames()
- 
withLogFrames
 
-