public final class WebSocketSettingsImpl extends WebSocketSettings implements scala.Product, java.io.Serializable
Constructor and Description |
---|
WebSocketSettingsImpl(scala.Function0<java.util.Random> randomFactory,
java.lang.String periodicKeepAliveMode,
scala.concurrent.duration.Duration periodicKeepAliveMaxIdle,
scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData,
boolean logFrames) |
Modifier and Type | Method and 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<org.apache.pekko.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() |
static WebSocketSettingsImpl |
server(com.typesafe.config.Config config) |
static WebSocketSettingsImpl |
serverFromRoot(com.typesafe.config.Config root) |
getPeriodicKeepAliveData, getRandomFactory, withLogFrames, withPeriodicKeepAliveData, withPeriodicKeepAliveMaxIdle, withPeriodicKeepAliveMode, withRandomFactoryFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$init$, productArity, productElement, productElementName, productElementNames, productIterator
withPeriodicKeepAliveData
public WebSocketSettingsImpl(scala.Function0<java.util.Random> randomFactory, java.lang.String periodicKeepAliveMode, scala.concurrent.duration.Duration periodicKeepAliveMaxIdle, scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData, boolean logFrames)
public static boolean hasNoCustomPeriodicKeepAliveData(WebSocketSettings settings)
public static WebSocketSettingsImpl serverFromRoot(com.typesafe.config.Config root)
public static WebSocketSettingsImpl server(com.typesafe.config.Config config)
public static WebSocketSettingsImpl clientFromRoot(com.typesafe.config.Config root)
public static WebSocketSettingsImpl client(com.typesafe.config.Config config)
public scala.Function0<java.util.Random> randomFactory()
randomFactory
in class WebSocketSettings
public java.lang.String periodicKeepAliveMode()
periodicKeepAliveMode
in interface WebSocketSettings
periodicKeepAliveMode
in class WebSocketSettings
public scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
periodicKeepAliveMaxIdle
in interface WebSocketSettings
periodicKeepAliveMaxIdle
in class WebSocketSettings
public scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData()
WebSocketSettings
periodicKeepAliveData
in class WebSocketSettings
public boolean logFrames()
logFrames
in interface WebSocketSettings
logFrames
in class WebSocketSettings
public java.lang.String productPrefix()
productPrefix
in interface scala.Product