Package akka.http.impl.settings
Class WebSocketSettingsImpl
java.lang.Object
akka.http.scaladsl.settings.WebSocketSettings
akka.http.impl.settings.WebSocketSettingsImpl
- All Implemented Interfaces:
WebSocketSettings
,Serializable
,scala.Equals
,scala.Product
public final class WebSocketSettingsImpl
extends WebSocketSettings
implements scala.Product, Serializable
INTERNAL API
- See Also:
-
Constructor Summary
ConstructorDescriptionWebSocketSettingsImpl
(scala.Function0<Random> randomFactory, String periodicKeepAliveMode, scala.concurrent.duration.Duration periodicKeepAliveMaxIdle, scala.Function0<akka.util.ByteString> periodicKeepAliveData, boolean logFrames) -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketSettingsImpl
client
(com.typesafe.config.Config config) static WebSocketSettingsImpl
clientFromRoot
(com.typesafe.config.Config root) static boolean
boolean
scala.Function0<akka.util.ByteString>
The provided function will be invoked for each new keep-alive frame that is sent.scala.concurrent.duration.Duration
scala.Function0<Random>
static WebSocketSettingsImpl
server
(com.typesafe.config.Config config) static WebSocketSettingsImpl
serverFromRoot
(com.typesafe.config.Config root) Methods inherited from class akka.http.scaladsl.settings.WebSocketSettings
getPeriodicKeepAliveData, getRandomFactory, withLogFrames, withPeriodicKeepAliveData, withPeriodicKeepAliveMaxIdle, withPeriodicKeepAliveMode, withRandomFactoryFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator
Methods inherited from interface akka.http.javadsl.settings.WebSocketSettings
withPeriodicKeepAliveData
-
Constructor Details
-
WebSocketSettingsImpl
-
-
Method Details
-
hasNoCustomPeriodicKeepAliveData
-
serverFromRoot
-
server
-
clientFromRoot
-
client
-
randomFactory
- Specified by:
randomFactory
in classWebSocketSettings
-
periodicKeepAliveMode
- Specified by:
periodicKeepAliveMode
in interfaceWebSocketSettings
- Specified by:
periodicKeepAliveMode
in classWebSocketSettings
-
periodicKeepAliveMaxIdle
public scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()- Specified by:
periodicKeepAliveMaxIdle
in interfaceWebSocketSettings
- Specified by:
periodicKeepAliveMaxIdle
in classWebSocketSettings
-
periodicKeepAliveData
public scala.Function0<akka.util.ByteString> periodicKeepAliveData()Description copied from class:WebSocketSettings
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.- Specified by:
periodicKeepAliveData
in classWebSocketSettings
- Returns:
- (undocumented)
-
logFrames
public boolean logFrames()- Specified by:
logFrames
in interfaceWebSocketSettings
- Specified by:
logFrames
in classWebSocketSettings
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-