Package org.apache.heron.streamlet
Enum Config.DeliverySemantics
- java.lang.Object
-
- java.lang.Enum<Config.DeliverySemantics>
-
- org.apache.heron.streamlet.Config.DeliverySemantics
-
- All Implemented Interfaces:
Serializable
,Comparable<Config.DeliverySemantics>
- Enclosing class:
- Config
public static enum Config.DeliverySemantics extends Enum<Config.DeliverySemantics>
An enum encapsulating the delivery semantics that can be applied to Heron topologies. The options are currently: at most once, at least once, or effectively once.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATLEAST_ONCE
ATMOST_ONCE
EFFECTIVELY_ONCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Config.DeliverySemantics
valueOf(String name)
Returns the enum constant of this type with the specified name.static Config.DeliverySemantics[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATMOST_ONCE
public static final Config.DeliverySemantics ATMOST_ONCE
-
ATLEAST_ONCE
public static final Config.DeliverySemantics ATLEAST_ONCE
-
EFFECTIVELY_ONCE
public static final Config.DeliverySemantics EFFECTIVELY_ONCE
-
-
Method Detail
-
values
public static Config.DeliverySemantics[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Config.DeliverySemantics c : Config.DeliverySemantics.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Config.DeliverySemantics 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 nameNullPointerException
- if the argument is null
-
-