Package org.apache.flink.connector.base
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionRecords are ensured to be delivered but it may happen that the same record is delivered multiple times.Records are only delivered exactly-once also under failover scenarios.Records are delivered on a best effort basis. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.configuration.description.InlineElementtoString()static DeliveryGuaranteeReturns the enum constant of this type with the specified name.static DeliveryGuarantee[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-
getDescription
public org.apache.flink.configuration.description.InlineElement getDescription()- Specified by:
getDescriptionin interfaceorg.apache.flink.configuration.DescribedEnum
-
toString
- Overrides:
toStringin classEnum<DeliveryGuarantee>
-