Enum Class WebSocketChannel

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

public enum WebSocketChannel extends Enum<WebSocketChannel>

Description: WebSocket通道

Author:
: gengwei.zheng
Date:
: 2021/10/24 18:41
  • Enum Constant Details

  • Method Details

    • values

      public static WebSocketChannel[] 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 WebSocketChannel 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
    • getDestination

      public String getDestination()
    • getDescription

      public String getDescription()
    • getWebSocketChannel

      public static WebSocketChannel getWebSocketChannel(String code)
    • getToJsonStruct

      public static List<Map<String,Object>> getToJsonStruct()