Enum DeliveryGuarantee

java.lang.Object
java.lang.Enum<DeliveryGuarantee>
org.apache.flink.connector.base.DeliveryGuarantee
All Implemented Interfaces:
Serializable, Comparable<DeliveryGuarantee>, org.apache.flink.configuration.DescribedEnum

@PublicEvolving public enum DeliveryGuarantee extends Enum<DeliveryGuarantee> implements org.apache.flink.configuration.DescribedEnum
DeliverGuarantees that can be chosen. In general your pipeline can only offer the lowest delivery guarantee which is supported by your sources and sinks.
  • Enum Constant Details

    • EXACTLY_ONCE

      public static final DeliveryGuarantee EXACTLY_ONCE
      Records are only delivered exactly-once also under failover scenarios. To build a complete exactly-once pipeline is required that the source and sink support exactly-once and are properly configured.
    • AT_LEAST_ONCE

      public static final DeliveryGuarantee AT_LEAST_ONCE
      Records are ensured to be delivered but it may happen that the same record is delivered multiple times. Usually, this guarantee is faster than the exactly-once delivery.
    • NONE

      public static final DeliveryGuarantee NONE
      Records are delivered on a best effort basis. It is often the fastest way to process records but it may happen that records are lost or duplicated.
  • Method Details

    • values

      public static DeliveryGuarantee[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DeliveryGuarantee valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public org.apache.flink.configuration.description.InlineElement getDescription()
      Specified by:
      getDescription in interface org.apache.flink.configuration.DescribedEnum
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DeliveryGuarantee>