Enum Class ServerTypeEnum

java.lang.Object
java.lang.Enum<ServerTypeEnum>
com.iohao.net.framework.protocol.ServerTypeEnum
All Implemented Interfaces:
Serializable, Comparable<ServerTypeEnum>, Constable

public enum ServerTypeEnum extends Enum<ServerTypeEnum>
Enumeration of server types within the ionet cluster.

Each server is classified as either a LOGIC server (handles business logic) or an EXTERNAL server (handles client-facing connections).

Since:
25.1
Author:
渔民小镇
date:
2025-08-25
  • Enum Constant Details

    • LOGIC

      public static final ServerTypeEnum LOGIC
      Logic server that processes business actions.
    • EXTERNAL

      public static final ServerTypeEnum EXTERNAL
      External (Netty) server that manages client connections.
  • Method Details

    • values

      public static ServerTypeEnum[] 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 ServerTypeEnum 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
    • valueOf

      public static ServerTypeEnum valueOf(byte value)
      Resolve a ServerTypeEnum from its byte value.
      Parameters:
      value - the byte value (0 for LOGIC, 1 for EXTERNAL)
      Returns:
      the corresponding enum constant
    • getValue

      public byte getValue()