Package org.glassfish.tyrus.core
Enum TyrusEndpointWrapper.SessionListener.OnOpenResult
- java.lang.Object
-
- java.lang.Enum<TyrusEndpointWrapper.SessionListener.OnOpenResult>
-
- org.glassfish.tyrus.core.TyrusEndpointWrapper.SessionListener.OnOpenResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TyrusEndpointWrapper.SessionListener.OnOpenResult>
- Enclosing class:
- TyrusEndpointWrapper.SessionListener
public static enum TyrusEndpointWrapper.SessionListener.OnOpenResult extends java.lang.Enum<TyrusEndpointWrapper.SessionListener.OnOpenResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAX_SESSIONS_PER_APP_EXCEEDED
Session cannot be opened - the maximal number of open session per application exceeded.MAX_SESSIONS_PER_REMOTE_ADDR_EXCEEDED
Session cannot be opened - the maximal number of open session per remote address exceeded.SESSION_ALLOWED
Session can be opened.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TyrusEndpointWrapper.SessionListener.OnOpenResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TyrusEndpointWrapper.SessionListener.OnOpenResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SESSION_ALLOWED
public static final TyrusEndpointWrapper.SessionListener.OnOpenResult SESSION_ALLOWED
Session can be opened.
-
MAX_SESSIONS_PER_APP_EXCEEDED
public static final TyrusEndpointWrapper.SessionListener.OnOpenResult MAX_SESSIONS_PER_APP_EXCEEDED
Session cannot be opened - the maximal number of open session per application exceeded.
-
MAX_SESSIONS_PER_REMOTE_ADDR_EXCEEDED
public static final TyrusEndpointWrapper.SessionListener.OnOpenResult MAX_SESSIONS_PER_REMOTE_ADDR_EXCEEDED
Session cannot be opened - the maximal number of open session per remote address exceeded.
-
-
Method Detail
-
values
public static TyrusEndpointWrapper.SessionListener.OnOpenResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TyrusEndpointWrapper.SessionListener.OnOpenResult c : TyrusEndpointWrapper.SessionListener.OnOpenResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TyrusEndpointWrapper.SessionListener.OnOpenResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-