jakarta.websocket.server.ServerEndpoint . When number of maximal open
sessions is exceeded every new attempt to open session is closed with
jakarta.websocket.CloseReason.CloseCodes#TRY_AGAIN_LATER .
If value less then 1 is specified, no limit will be applied.
Annotation example:
@MaxSessions(100)
@ServerEndpoint("/limited-resources")
public class LimitedEndpoint {
}
Maximal number of open sessions can be also specified programmatically
using org..
| Modifier and Type | Method and Description |
|---|---|
| public int |
| value | back to summary |
|---|---|
| public int value() Maximal number of open sessions.
| |