Package io.fluxcapacitor.javaclient.web
Annotation Interface SocketEndpoint.AliveCheck
- Enclosing class:
SocketEndpoint
public static @interface SocketEndpoint.AliveCheck
Controls periodic keep-alive pings to detect inactive sessions.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionlong
Interval between pings intimeUnit()
.long
Time allowed to receive a pong after a ping.Unit for ping intervals and timeouts.boolean
Whether the keep-alive mechanism is enabled.
-
Element Details
-
value
boolean valueWhether the keep-alive mechanism is enabled. Defaults totrue
.- Default:
true
-
timeUnit
TimeUnit timeUnitUnit for ping intervals and timeouts.- Default:
SECONDS
-
pingDelay
long pingDelayInterval between pings intimeUnit()
.- Default:
50L
-
pingTimeout
long pingTimeoutTime allowed to receive a pong after a ping. If exceeded, the session is closed.- Default:
20L
-