Enum Class InstanceMode

java.lang.Object
java.lang.Enum<InstanceMode>
cn.herodotus.engine.message.websocket.enums.InstanceMode
All Implemented Interfaces:
Serializable, Comparable<InstanceMode>, Constable

public enum InstanceMode extends Enum<InstanceMode>

Description: 实例模式枚举

Author:
: gengwei.zheng
Date:
: 2023/9/14 17:48
  • Enum Constant Details

    • SINGLE

      public static final InstanceMode SINGLE
      单实例模式
    • MULTIPLE

      public static final InstanceMode MULTIPLE
      多实例模式
  • Method Details

    • values

      public static InstanceMode[] 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

      public static InstanceMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null