Enum Class Target.Kind

java.lang.Object
java.lang.Enum<Target.Kind>
dev.ua.theroer.magicutils.messaging.Target.Kind
All Implemented Interfaces:
Serializable, Comparable<Target.Kind>, Constable
Enclosing class:
Target

public static enum Target.Kind extends Enum<Target.Kind>
Classifies the intended recipients of a message.
  • Enum Constant Details

    • BROADCAST

      public static final Target.Kind BROADCAST
      Deliver to every network member subscribed to the channel.
    • ALL_BACKENDS

      public static final Target.Kind ALL_BACKENDS
      Deliver to every backend server (proxy excluded).
    • PROXY

      public static final Target.Kind PROXY
      Deliver to the proxy only.
    • SERVER

      public static final Target.Kind SERVER
      Deliver to a single backend server identified by Target.serverName().
    • PLAYER

      public static final Target.Kind PLAYER
      Deliver to the backend currently hosting Target.playerId().
  • Method Details

    • values

      public static Target.Kind[] 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 Target.Kind 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