Enum Class Execution

java.lang.Object
java.lang.Enum<Execution>
io.prismmc.prism.dashboard.Execution
All Implemented Interfaces:
Serializable, Comparable<Execution>, Constable

public enum Execution extends Enum<Execution>
Where a page's renderer or an action's handler runs. Prism threads its regions: the thread of the global region owns world-wide state (the time, the weather, commands from the console), the thread of each region owns its chunks and entities. To change an entity, an action goes to its thread with ActionContext.entity(Entity, Supplier).
  • Enum Constant Details

    • GLOBAL

      public static final Execution GLOBAL
      The global region thread, between two of its ticks, as a command from the console.
    • ASYNC

      public static final Execution ASYNC
      A thread of the plugin's own, off the server's: for what the plugin keeps in memory, files, a database.
  • Method Details

    • values

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