Class WebSocketSettings
java.lang.Object
org.apache.pekko.http.scaladsl.settings.WebSocketSettings
- All Implemented Interfaces:
- WebSocketSettings
- Direct Known Subclasses:
- WebSocketSettingsImpl
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal Supplier<org.apache.pekko.util.ByteString>The provided supplier will be invoked for each new keep-alive frame that is sent.abstract booleanabstract scala.Function0<org.apache.pekko.util.ByteString>The provided function will be invoked for each new keep-alive frame that is sent.abstract scala.concurrent.duration.Durationabstract Stringabstract scala.Function0<Random>withLogFrames(boolean shouldLog) withPeriodicKeepAliveData(scala.Function0<org.apache.pekko.util.ByteString> newValue) withPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue) withPeriodicKeepAliveMode(String newValue) withRandomFactoryFactory(Supplier<Random> newValue) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.javadsl.settings.WebSocketSettingsgetPeriodicKeepAliveMaxIdle, withPeriodicKeepAliveData, withPeriodicKeepAliveMaxIdle
- 
Constructor Details- 
WebSocketSettingspublic WebSocketSettings()
 
- 
- 
Method Details- 
getPeriodicKeepAliveDataDescription copied from interface:WebSocketSettingsThe 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.- Specified by:
- getPeriodicKeepAliveDatain interface- WebSocketSettings
- Returns:
- (undocumented)
 
- 
getRandomFactory- Specified by:
- getRandomFactoryin interface- WebSocketSettings
 
- 
logFramespublic abstract boolean logFrames()- Specified by:
- logFramesin interface- WebSocketSettings
 
- 
periodicKeepAliveDatapublic abstract scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData()The provided function 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)
 
- 
periodicKeepAliveMaxIdlepublic abstract scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()- Specified by:
- periodicKeepAliveMaxIdlein interface- WebSocketSettings
 
- 
periodicKeepAliveMode- Specified by:
- periodicKeepAliveModein interface- WebSocketSettings
 
- 
randomFactory
- 
withLogFrames- Specified by:
- withLogFramesin interface- WebSocketSettings
 
- 
withPeriodicKeepAliveDatapublic WebSocketSettings withPeriodicKeepAliveData(scala.Function0<org.apache.pekko.util.ByteString> newValue) 
- 
withPeriodicKeepAliveMaxIdle- Specified by:
- withPeriodicKeepAliveMaxIdlein interface- WebSocketSettings
 
- 
withPeriodicKeepAliveMode- Specified by:
- withPeriodicKeepAliveModein interface- WebSocketSettings
 
- 
withRandomFactoryFactory- Specified by:
- withRandomFactoryFactoryin interface- WebSocketSettings
 
 
-