Enum Class SplitWriter.Strategy

java.lang.Object
java.lang.Enum<SplitWriter.Strategy>
com.northconcepts.datapipeline.multiplex.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.
  • Enum Constant Details

    • BROADCAST

      public static final SplitWriter.Strategy BROADCAST
      Sends a copy of each record to every downstream reader.
    • ROUND_ROBIN

      public static final SplitWriter.Strategy ROUND_ROBIN
      Sends each record to a single downstream reader by cycling through the downstream readers one-at-a-time.
  • Method Details

    • values

      public static SplitWriter.Strategy[] 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 SplitWriter.Strategy 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