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 WebSocketSettingsImplclient(com.typesafe.config.Config config)static WebSocketSettingsImplclientFromRoot(com.typesafe.config.Config root)static booleanhasNoCustomPeriodicKeepAliveData(WebSocketSettings settings)booleanlogFrames()scala.Function0<akka.util.ByteString>periodicKeepAliveData()The provided function will be invoked for each new keep-alive frame that is sent.scala.concurrent.duration.DurationperiodicKeepAliveMaxIdle()java.lang.StringperiodicKeepAliveMode()java.lang.StringproductPrefix()scala.Function0<java.util.Random>randomFactory()scala.concurrent.duration.DurationreceiveIdleTimeout()scala.concurrent.duration.DurationsendIdleTimeout()static WebSocketSettingsImplserver(com.typesafe.config.Config config)static WebSocketSettingsImplserverFromRoot(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:
randomFactoryin classWebSocketSettings
-
receiveIdleTimeout
public scala.concurrent.duration.Duration receiveIdleTimeout()
- Specified by:
receiveIdleTimeoutin interfaceWebSocketSettings- Specified by:
receiveIdleTimeoutin classWebSocketSettings
-
sendIdleTimeout
public scala.concurrent.duration.Duration sendIdleTimeout()
- Specified by:
sendIdleTimeoutin interfaceWebSocketSettings- Specified by:
sendIdleTimeoutin classWebSocketSettings
-
periodicKeepAliveMode
public java.lang.String periodicKeepAliveMode()
- Specified by:
periodicKeepAliveModein interfaceWebSocketSettings- Specified by:
periodicKeepAliveModein classWebSocketSettings
-
periodicKeepAliveMaxIdle
public scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
- Specified by:
periodicKeepAliveMaxIdlein interfaceWebSocketSettings- Specified by:
periodicKeepAliveMaxIdlein classWebSocketSettings
-
periodicKeepAliveData
public scala.Function0<akka.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 classWebSocketSettings- Returns:
- (undocumented)
-
logFrames
public boolean logFrames()
- Specified by:
logFramesin interfaceWebSocketSettings- Specified by:
logFramesin classWebSocketSettings
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
-