Enum Class DeliveryMode

java.lang.Object
java.lang.Enum<DeliveryMode>
org.j7m.middleware.api.reliability.DeliveryMode
All Implemented Interfaces:
Serializable, Comparable<DeliveryMode>, Constable

public enum DeliveryMode extends Enum<DeliveryMode>
Transport-neutral delivery mode requested for one invocation.

The enum is immutable and thread-safe. It describes middleware retry and duplicate-handling semantics only; it does not claim business side-effect consistency.

  • Enum Constant Details

    • AT_MOST_ONCE_BEST_EFFORT

      public static final DeliveryMode AT_MOST_ONCE_BEST_EFFORT
      Send once and report the observed outcome without middleware retry.
    • AT_LEAST_ONCE_RETRYABLE

      public static final DeliveryMode AT_LEAST_ONCE_RETRYABLE
      Retry may be attempted only when the operation is retry-safe.
    • EFFECTIVELY_ONCE_PATTERN

      public static final DeliveryMode EFFECTIVELY_ONCE_PATTERN
      Effectively-once pattern metadata is present, but applications own side effects.
    • UNSUPPORTED_EXACTLY_ONCE

      public static final DeliveryMode UNSUPPORTED_EXACTLY_ONCE
      Generic exactly-once distributed execution was requested and is unsupported.
  • Method Details

    • values

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