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, waitwithPeriodicKeepAliveDatapublic final java.util.function.Supplier<org.apache.pekko.util.ByteString> getPeriodicKeepAliveData()
WebSocketSettingsgetPeriodicKeepAliveData in interface WebSocketSettingspublic final java.util.function.Supplier<java.util.Random> getRandomFactory()
getRandomFactory in interface WebSocketSettingspublic abstract boolean logFrames()
logFrames in interface WebSocketSettingspublic abstract scala.Function0<org.apache.pekko.util.ByteString> periodicKeepAliveData()
public abstract scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
periodicKeepAliveMaxIdle in interface WebSocketSettingspublic abstract java.lang.String periodicKeepAliveMode()
periodicKeepAliveMode in interface WebSocketSettingspublic abstract scala.Function0<java.util.Random> randomFactory()
public WebSocketSettings withLogFrames(boolean shouldLog)
withLogFrames in interface WebSocketSettingspublic WebSocketSettings withPeriodicKeepAliveData(scala.Function0<org.apache.pekko.util.ByteString> newValue)
public WebSocketSettings withPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue)
withPeriodicKeepAliveMaxIdle in interface WebSocketSettingspublic WebSocketSettings withPeriodicKeepAliveMode(java.lang.String newValue)
withPeriodicKeepAliveMode in interface WebSocketSettingspublic WebSocketSettings withRandomFactoryFactory(java.util.function.Supplier<java.util.Random> newValue)
withRandomFactoryFactory in interface WebSocketSettings