Package dev.pulsemc.pulse.api.enums
Enum Class FlushReason
- All Implemented Interfaces:
Serializable,Comparable<FlushReason>,Constable
Represents the reason why the packet buffer was flushed to the network.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFlushed because a critical packet (e.g., KeepAlive) or a packet with a listener was sent.Flushed by the interval scheduler (Interval Mode).The buffer exceeded the maximum byte size.The buffer exceeded the maximum packet count.Flushed manually via the API or command.Flushed at the end of the server tick. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlushReasonReturns the enum constant of this class with the specified name.static FlushReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LIMIT_BYTES
The buffer exceeded the maximum byte size. -
LIMIT_COUNT
The buffer exceeded the maximum packet count. -
TICK
Flushed at the end of the server tick. -
INSTANT
Flushed because a critical packet (e.g., KeepAlive) or a packet with a listener was sent. -
INTERVAL
Flushed by the interval scheduler (Interval Mode). -
MANUAL
Flushed manually via the API or command.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-