Enum Class SplitWriter.Strategy
- All Implemented Interfaces:
SplitWriter.IStrategy,Serializable,Comparable<SplitWriter.Strategy>,Constable
- Enclosing class:
SplitWriter
public static enum SplitWriter.Strategy
extends Enum<SplitWriter.Strategy>
implements SplitWriter.IStrategy
The built-in strategies: send every record to all readers or each record to one reader in turn.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSends a copy of each record to every downstream reader.Sends each record to a single downstream reader by cycling through the downstream readers one-at-a-time. -
Method Summary
Modifier and TypeMethodDescriptionstatic SplitWriter.StrategyReturns the enum constant of this class with the specified name.static SplitWriter.Strategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.northconcepts.datapipeline.multiplex.SplitWriter.IStrategy
put, take
-
Enum Constant Details
-
BROADCAST
Sends a copy of each record to every downstream reader. -
ROUND_ROBIN
Sends each record to a single downstream reader by cycling through the downstream readers one-at-a-time.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-