Enum Class AckMessageType

java.lang.Object
java.lang.Enum<AckMessageType>
com.tnsai.communication.AckMessageType
All Implemented Interfaces:
MessageTypeMarker, Serializable, Comparable<AckMessageType>, Constable

public enum AckMessageType extends Enum<AckMessageType> implements MessageTypeMarker
Message types for acknowledgment protocol.

Flow:

  1. Sender -> MESSAGE (with requiresAck=true)
  2. Receiver -> ACK or NACK
  3. If no response within timeout -> TIMEOUT (internal)
  • Enum Constant Details

    • ACK

      public static final AckMessageType ACK
      Positive acknowledgment - message received and processed successfully.
    • NACK

      public static final AckMessageType NACK
      Negative acknowledgment - message received but processing failed.
    • TIMEOUT

      public static final AckMessageType TIMEOUT
      Internal type indicating acknowledgment timeout.
  • Method Details

    • values

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