Package akka.http.impl.settings
Class WebSocketSettingsImpl
- java.lang.Object
-
- akka.http.scaladsl.settings.WebSocketSettings
-
- akka.http.impl.settings.WebSocketSettingsImpl
-
- All Implemented Interfaces:
WebSocketSettings
,java.io.Serializable
,scala.Equals
,scala.Product
public final class WebSocketSettingsImpl extends WebSocketSettings implements scala.Product, java.io.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketSettingsImpl(scala.Function0<java.util.Random> randomFactory, scala.concurrent.duration.Duration receiveIdleTimeout, scala.concurrent.duration.Duration sendIdleTimeout, java.lang.String periodicKeepAliveMode, scala.concurrent.duration.Duration periodicKeepAliveMaxIdle, scala.Function0<akka.util.ByteString> periodicKeepAliveData, boolean logFrames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebSocketSettingsImpl
client(com.typesafe.config.Config config)
static WebSocketSettingsImpl
clientFromRoot(com.typesafe.config.Config root)
static boolean
hasNoCustomPeriodicKeepAliveData(WebSocketSettings settings)
boolean
logFrames()
scala.Function0<akka.util.ByteString>
periodicKeepAliveData()
The provided function will be invoked for each new keep-alive frame that is sent.scala.concurrent.duration.Duration
periodicKeepAliveMaxIdle()
java.lang.String
periodicKeepAliveMode()
java.lang.String
productPrefix()
scala.Function0<java.util.Random>
randomFactory()
scala.concurrent.duration.Duration
receiveIdleTimeout()
scala.concurrent.duration.Duration
sendIdleTimeout()
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.Product
productArity, productElement, productElementName, productElementNames, productIterator
-
Methods inherited from interface akka.http.javadsl.settings.WebSocketSettings
withPeriodicKeepAliveData
-
-
-
-
Constructor Detail
-
WebSocketSettingsImpl
public WebSocketSettingsImpl(scala.Function0<java.util.Random> randomFactory, scala.concurrent.duration.Duration receiveIdleTimeout, scala.concurrent.duration.Duration sendIdleTimeout, java.lang.String periodicKeepAliveMode, scala.concurrent.duration.Duration periodicKeepAliveMaxIdle, scala.Function0<akka.util.ByteString> periodicKeepAliveData, boolean logFrames)
-
-
Method Detail
-
hasNoCustomPeriodicKeepAliveData
public static boolean hasNoCustomPeriodicKeepAliveData(WebSocketSettings settings)
-
serverFromRoot
public static WebSocketSettingsImpl serverFromRoot(com.typesafe.config.Config root)
-
server
public static WebSocketSettingsImpl server(com.typesafe.config.Config config)
-
clientFromRoot
public static WebSocketSettingsImpl clientFromRoot(com.typesafe.config.Config root)
-
client
public static WebSocketSettingsImpl client(com.typesafe.config.Config config)
-
randomFactory
public scala.Function0<java.util.Random> randomFactory()
- Specified by:
randomFactory
in classWebSocketSettings
-
receiveIdleTimeout
public scala.concurrent.duration.Duration receiveIdleTimeout()
- Specified by:
receiveIdleTimeout
in interfaceWebSocketSettings
- Specified by:
receiveIdleTimeout
in classWebSocketSettings
-
sendIdleTimeout
public scala.concurrent.duration.Duration sendIdleTimeout()
- Specified by:
sendIdleTimeout
in interfaceWebSocketSettings
- Specified by:
sendIdleTimeout
in classWebSocketSettings
-
periodicKeepAliveMode
public java.lang.String 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
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
-