Enum Class UpdateTrigger

java.lang.Object
java.lang.Enum<UpdateTrigger>
tech.guilhermekaua.spigotboot.inventoryapi.context.UpdateTrigger
All Implemented Interfaces:
Serializable, Comparable<UpdateTrigger>, Constable

public enum UpdateTrigger extends Enum<UpdateTrigger>
Why an update pass runs; exposed through UpdateContext.trigger().
  • Enum Constant Details

    • SCHEDULED

      public static final UpdateTrigger SCHEDULED
      Scheduled tick update configured via ViewConfigBuilder.scheduleUpdate(long).
    • STATE_CHANGE

      public static final UpdateTrigger STATE_CHANGE
      Coalesced flush after one or more state tokens changed via MutableState or SharedState.
    • EXPLICIT

      public static final UpdateTrigger EXPLICIT
      Explicit ViewContext.update() or service-driven update.
    • PAGINATION_SETTLE

      public static final UpdateTrigger PAGINATION_SETTLE
      A pagination page settled (success, failure or timeout).
  • Method Details

    • values

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