Enum Class DeliveryUrgency
- All Implemented Interfaces:
Serializable, Comparable<DeliveryUrgency>, Constable
Delivery urgency is a soft preference: it yields to authorization, to the residency invariant, and to ResidencyPolicy on conflict. It tunes the spool behaviour and whether a send may burst past the soft push throughput roof, but it never overrides a hard constraint. In particular a FAST send whose target region is unreachable under ResidencyPolicy.MUST is delayed, not redirected: the constraint wins, urgency degrades, and the result explains why.
Persistence note. This value is stored in a property container by ordinal() (see the enum-storage idiom in IPushSettings). The order of these constants is therefore part of the persisted and wire contract: new constants MUST be appended at the end, never inserted or reordered, or an existing stored value will silently change meaning.
- Author:
- IIZI
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsField Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionstatic DeliveryUrgencyReturns the enum constant of this class with the specified name.static DeliveryUrgency[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
FAST
Minimize latency. Dispatch each region slice the moment it is resolved rather than waiting for the full plan, do not batch, and accept a higher per-send cost. May be permitted to burst past the soft push throughput roof. For time-critical notifications such as a second-factor code or a fraud alert.NORMAL
The default. Build the full routing plan, batch sensibly, respect the push throughput roof, and deliver in reasonable time. For the majority of notifications.DONT_CARE
Throughput over latency. Batch aggressively, coalesce, and send when convenient; drain the queue when the server is idle. Respects the push roof strictly. For bulk, non-urgent sends such as a nightly digest, where no recipient is waiting and the server load matters more than the clock.
Field Details
DEFAULT
The default delivery urgency:NORMAL.
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