Enum Class SaReplacedLoginExitMode
java.lang.Object
java.lang.Enum<SaReplacedLoginExitMode>
cn.dev33.satoken.stp.parameter.enums.SaReplacedLoginExitMode
- All Implemented Interfaces:
Serializable,Comparable<SaReplacedLoginExitMode>,Constable
在 isConcurrent=false 时,决定新旧设备谁将放弃会话
- Since:
- 1.44.0
- Author:
- 石泽旭
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SaReplacedLoginExitModeReturns the enum constant of this class with the specified name.static SaReplacedLoginExitMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OLD_DEVICE
旧设备下线,新设备登录成功 -
NEW_DEVICE
新设备登录失败,旧设备维持在线
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-