Class WebSocketSettingsImpl
java.lang.Object
org.apache.pekko.http.scaladsl.settings.WebSocketSettings
org.apache.pekko.http.impl.settings.WebSocketSettingsImpl
- All Implemented Interfaces:
- Serializable,- WebSocketSettings,- scala.Equals,- scala.Product
public final class WebSocketSettingsImpl
extends WebSocketSettings
implements scala.Product, Serializable
INTERNAL API
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionWebSocketSettingsImpl(scala.Function0<Random> randomFactory, String periodicKeepAliveMode, scala.concurrent.duration.Duration periodicKeepAliveMaxIdle, scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData, boolean logFrames) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic WebSocketSettingsImplclient(com.typesafe.config.Config config) static WebSocketSettingsImplclientFromRoot(com.typesafe.config.Config root) Java APIstatic booleanbooleanscala.Function0<org.apache.pekko.util.ByteString>The provided function will be invoked for each new keep-alive frame that is sent.scala.concurrent.duration.Durationscala.Function0<Random>static WebSocketSettingsImplserver(com.typesafe.config.Config config) static WebSocketSettingsImplserverFromRoot(com.typesafe.config.Config root) Methods inherited from class org.apache.pekko.http.scaladsl.settings.WebSocketSettingsgetPeriodicKeepAliveData, getRandomFactory, withLogFrames, withPeriodicKeepAliveData, withPeriodicKeepAliveMaxIdle, withPeriodicKeepAliveMode, withRandomFactoryFactoryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIteratorMethods inherited from interface org.apache.pekko.http.javadsl.settings.WebSocketSettingswithPeriodicKeepAliveData, withPeriodicKeepAliveMaxIdle
- 
Constructor Details- 
WebSocketSettingsImpl
 
- 
- 
Method Details- 
hasNoCustomPeriodicKeepAliveData
- 
serverFromRoot
- 
server
- 
clientFromRoot
- 
client
- 
randomFactory- Specified by:
- randomFactoryin class- WebSocketSettings
 
- 
periodicKeepAliveMode- Specified by:
- periodicKeepAliveModein interface- WebSocketSettings
- Specified by:
- periodicKeepAliveModein class- WebSocketSettings
 
- 
periodicKeepAliveMaxIdlepublic scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()- Specified by:
- periodicKeepAliveMaxIdlein interface- WebSocketSettings
- Specified by:
- periodicKeepAliveMaxIdlein class- WebSocketSettings
 
- 
periodicKeepAliveDatapublic scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData()Description copied from class:WebSocketSettingsThe 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.- Specified by:
- periodicKeepAliveDatain class- WebSocketSettings
- Returns:
- (undocumented)
 
- 
logFramespublic boolean logFrames()- Specified by:
- logFramesin interface- WebSocketSettings
- Specified by:
- logFramesin class- WebSocketSettings
 
- 
getPeriodicKeepAliveMaxIdleDescription copied from interface:WebSocketSettingsJava API- Specified by:
- getPeriodicKeepAliveMaxIdlein interface- WebSocketSettings
- Returns:
- (undocumented)
 
- 
productPrefix- Specified by:
- productPrefixin interface- scala.Product
 
 
-