@Retention(value=RUNTIME)
 @Target(value=TYPE)
public @interface MaxSessions
ServerEndpoint. When number of maximal open
 sessions is exceeded every new attempt to open session is closed with
 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 TyrusServerEndpointConfig.Builder.maxSessions(int).
 
| Modifier and Type | Required Element and Description | 
|---|---|
| int | valueMaximal number of open sessions. | 
Copyright © 2012–2020 Oracle Corporation. All rights reserved.