Package akka.http.scaladsl.settings
Class WebSocketSettings
- java.lang.Object
-
- akka.http.scaladsl.settings.WebSocketSettings
-
- All Implemented Interfaces:
WebSocketSettings
- Direct Known Subclasses:
WebSocketSettingsImpl
public abstract class WebSocketSettings extends java.lang.Object implements WebSocketSettings
-
-
Constructor Summary
Constructors Constructor Description WebSocketSettings()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<akka.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 booleanlogFrames()abstract scala.Function0<akka.util.ByteString>periodicKeepAliveData()The provided function will be invoked for each new keep-alive frame that is sent.abstract scala.concurrent.duration.DurationperiodicKeepAliveMaxIdle()abstract java.lang.StringperiodicKeepAliveMode()abstract scala.Function0<java.util.Random>randomFactory()abstract scala.concurrent.duration.DurationreceiveIdleTimeout()abstract scala.concurrent.duration.DurationsendIdleTimeout()WebSocketSettingswithLogFrames(boolean shouldLog)WebSocketSettingswithPeriodicKeepAliveData(scala.Function0<akka.util.ByteString> newValue)WebSocketSettingswithPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue)WebSocketSettingswithPeriodicKeepAliveMode(java.lang.String newValue)WebSocketSettingswithRandomFactoryFactory(java.util.function.Supplier<java.util.Random> newValue)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.javadsl.settings.WebSocketSettings
withPeriodicKeepAliveData
-
-
-
-
Method Detail
-
getPeriodicKeepAliveData
public final java.util.function.Supplier<akka.util.ByteString> getPeriodicKeepAliveData()
Description copied from interface:WebSocketSettingsThe provided supplier 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:
getPeriodicKeepAliveDatain interfaceWebSocketSettings- Returns:
- (undocumented)
-
getRandomFactory
public final java.util.function.Supplier<java.util.Random> getRandomFactory()
- Specified by:
getRandomFactoryin interfaceWebSocketSettings
-
logFrames
public abstract boolean logFrames()
- Specified by:
logFramesin interfaceWebSocketSettings
-
periodicKeepAliveData
public abstract scala.Function0<akka.util.ByteString> periodicKeepAliveData()
The 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.- Returns:
- (undocumented)
-
periodicKeepAliveMaxIdle
public abstract scala.concurrent.duration.Duration periodicKeepAliveMaxIdle()
- Specified by:
periodicKeepAliveMaxIdlein interfaceWebSocketSettings
-
periodicKeepAliveMode
public abstract java.lang.String periodicKeepAliveMode()
- Specified by:
periodicKeepAliveModein interfaceWebSocketSettings
-
randomFactory
public abstract scala.Function0<java.util.Random> randomFactory()
-
receiveIdleTimeout
public abstract scala.concurrent.duration.Duration receiveIdleTimeout()
- Specified by:
receiveIdleTimeoutin interfaceWebSocketSettings
-
sendIdleTimeout
public abstract scala.concurrent.duration.Duration sendIdleTimeout()
- Specified by:
sendIdleTimeoutin interfaceWebSocketSettings
-
withLogFrames
public WebSocketSettings withLogFrames(boolean shouldLog)
- Specified by:
withLogFramesin interfaceWebSocketSettings
-
withPeriodicKeepAliveData
public WebSocketSettings withPeriodicKeepAliveData(scala.Function0<akka.util.ByteString> newValue)
-
withPeriodicKeepAliveMaxIdle
public WebSocketSettings withPeriodicKeepAliveMaxIdle(scala.concurrent.duration.Duration newValue)
- Specified by:
withPeriodicKeepAliveMaxIdlein interfaceWebSocketSettings
-
withPeriodicKeepAliveMode
public WebSocketSettings withPeriodicKeepAliveMode(java.lang.String newValue)
- Specified by:
withPeriodicKeepAliveModein interfaceWebSocketSettings
-
withRandomFactoryFactory
public WebSocketSettings withRandomFactoryFactory(java.util.function.Supplier<java.util.Random> newValue)
- Specified by:
withRandomFactoryFactoryin interfaceWebSocketSettings
-
-