Enum Class FlushReason

java.lang.Object
java.lang.Enum<FlushReason>
dev.pulsemc.pulse.api.enums.FlushReason
All Implemented Interfaces:
Serializable, Comparable<FlushReason>, Constable

public enum FlushReason extends Enum<FlushReason>
Represents the reason why the packet buffer was flushed to the network.
  • Enum Constant Details

    • LIMIT_BYTES

      public static final FlushReason LIMIT_BYTES
      The buffer exceeded the maximum byte size.
    • LIMIT_COUNT

      public static final FlushReason LIMIT_COUNT
      The buffer exceeded the maximum packet count.
    • TICK

      public static final FlushReason TICK
      Flushed at the end of the server tick.
    • INSTANT

      public static final FlushReason INSTANT
      Flushed because a critical packet (e.g., KeepAlive) or a packet with a listener was sent.
    • INTERVAL

      public static final FlushReason INTERVAL
      Flushed by the interval scheduler (Interval Mode).
    • MANUAL

      public static final FlushReason MANUAL
      Flushed manually via the API or command.
  • Method Details

    • values

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