Enum Class Qos

java.lang.Object
java.lang.Enum<Qos>
io.gravitee.gateway.reactive.api.qos.Qos
All Implemented Interfaces:
Serializable, Comparable<Qos>, Constable

public enum Qos extends Enum<Qos>
Author:
Guillaume LAMIRAND (guillaume.lamirand at graviteesource.com), GraviteeSource Team
  • Enum Constant Details

    • NONE

      public static final Qos NONE
      This QoS level allows a high throughput and good performance but without any warranty regarding the delivery. After a failure or any disconnection, client will only receive new messages sent after its reconnection.
    • AUTO

      public static final Qos AUTO
      This QoS level will adapt the QoS depending on EntrypointConnector and EndpointConnector capabilities allowing a trade-off between performance and delivery warranty. Messages could be received 0, 1 or many times.
    • AT_MOST_ONCE

      public static final Qos AT_MOST_ONCE
      This level of QoS warranty that messages are delivered 0 or once without any duplication. Depending on EntrypointConnector and EndpointConnector, performance could be degraded.
    • AT_LEAST_ONCE

      public static final Qos AT_LEAST_ONCE
      This level of QoS warranties that messages are delivered once or many times. This is a good trade-off in terms of performance comparing to AT_MOST_ONCE especially when the EntrypointConnector is not able to resume the streams of messages after a failure.
  • Method Details

    • values

      public static Qos[] 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 Qos 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
    • fromLabel

      public static Qos fromLabel(String label)