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