public abstract class WebSocketSettings extends java.lang.Object implements WebSocketSettings
Constructor and Description |
---|
WebSocketSettings() |
Modifier and Type | Method and Description |
---|---|
java.util.function.Supplier<org.apache.pekko.util.ByteString> |
getPeriodicKeepAliveData()
The provided supplier will be invoked for each new keep-alive frame that is sent.
|
java.util.function.Supplier<java.util.Random> |
getRandomFactory() |
abstract boolean |
logFrames() |
abstract scala.Function0<org.apache.pekko.util.ByteString> |
periodicKeepAliveData()
The provided function will be invoked for each new keep-alive frame that is sent.
|
abstract scala.concurrent.duration.Duration |
periodicKeepAliveMaxIdle() |
abstract java.lang.String |
periodicKeepAliveMode() |
abstract scala.Function0<java.util.Random> |
randomFactory() |
WebSocketSettings |
withLogFrames(boolean shouldLog) |
WebSocketSettings |
withPeriodicKeepAliveData(scala.Function0<org.apache.pekko.util.ByteString> newValue) |
WebSocketSettings |
withPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue) |
WebSocketSettings |
withPeriodicKeepAliveMode(java.lang.String newValue) |
WebSocketSettings |
withRandomFactoryFactory(java.util.function.Supplier<java.util.Random> newValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withPeriodicKeepAliveData
public final java.util.function.Supplier<org.apache.pekko.util.ByteString> getPeriodicKeepAliveData()
WebSocketSettings
getPeriodicKeepAliveData
in interface WebSocketSettings
public final java.util.function.Supplier<java.util.Random> getRandomFactory()
getRandomFactory
in interface WebSocketSettings
public abstract boolean logFrames()
logFrames
in interface WebSocketSettings
public abstract scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData()
public abstract scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
periodicKeepAliveMaxIdle
in interface WebSocketSettings
public abstract java.lang.String periodicKeepAliveMode()
periodicKeepAliveMode
in interface WebSocketSettings
public abstract scala.Function0<java.util.Random> randomFactory()
public WebSocketSettings withLogFrames(boolean shouldLog)
withLogFrames
in interface WebSocketSettings
public WebSocketSettings withPeriodicKeepAliveData(scala.Function0<org.apache.pekko.util.ByteString> newValue)
public WebSocketSettings withPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue)
withPeriodicKeepAliveMaxIdle
in interface WebSocketSettings
public WebSocketSettings withPeriodicKeepAliveMode(java.lang.String newValue)
withPeriodicKeepAliveMode
in interface WebSocketSettings
public WebSocketSettings withRandomFactoryFactory(java.util.function.Supplier<java.util.Random> newValue)
withRandomFactoryFactory
in interface WebSocketSettings