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 ElementDescriptionlongInterval between pings intimeUnit().longTime allowed to receive a pong after a ping.Unit for ping intervals and timeouts.booleanWhether the keep-alive mechanism is enabled.
-
Element Details
-
value
boolean valueWhether the keep-alive mechanism is enabled. Defaults totrue.- Default:
true
-
timeUnit
-
pingDelay
-
pingTimeout
long pingTimeoutTime allowed to receive a pong after a ping. If exceeded, the session is closed.- Default:
20L
-