Enum Class CloseReason

java.lang.Object
java.lang.Enum<CloseReason>
com.xpdustry.claj.common.status.CloseReason
All Implemented Interfaces:
Serializable, Comparable<CloseReason>, Constable

public enum CloseReason extends Enum<CloseReason>
  • Enum Constant Details

    • error

      public static final CloseReason error
      Connection closed or an error occurred while hosting a room.
    • closed

      public static final CloseReason closed
      Closed without reason.
    • obsoleteClient

      public static final CloseReason obsoleteClient
      Incompatible CLaJ client.
    • outdatedClient

      public static final CloseReason outdatedClient
      Old CLaJ client.
    • outdatedServer

      public static final CloseReason outdatedServer
      Old CLaJ server.
    • serverClosed

      public static final CloseReason serverClosed
      Server is shutting down.
    • serverFull

      public static final CloseReason serverFull
      The server is notifying as full.
    • blacklisted

      public static final CloseReason blacklisted
      The CLaJ server doesn't allows the provided implementation.
    • afk

      public static final CloseReason afk
      The room as been closed by the server because it considered the room as AFK.
      Here, AFK means that no CLaJ clients has joined the room for a long time. Even if in reality, there are client connected but with another way than CLaJ.
    • spam

      public static final CloseReason spam
      The host is sending too many packets.
  • Field Details

  • Method Details

    • values

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