Enum Class Mode

java.lang.Object
java.lang.Enum<Mode>
io.kubfly.sdk.pipeline.Mode
All Implemented Interfaces:
Serializable, Comparable<Mode>, Constable

public enum Mode extends Enum<Mode>
The mode of the pipeline (KUBFLY_PIPELINE_MODE, ASYNC by default): what a writer does when every lane is full, and the drain when the ring of an output is full. Both write on the threads of the pipeline, never on the thread of the application. The variable is read in any case; the name of the constant is its canonical form — in the documentation, in the problems of the configuration and in the parameter of STATUS.
  • Enum Constant Details

    • ASYNC

      public static final Mode ASYNC
      KubFly Async: the application never waits for KubFly. A record that fits in no lane and a batch that finds the ring of its output full are lost at once and counted (sdk/pipeline/collector/core/lane/lost, sdk/pipeline/output/<output>/batches/lost).
    • LOSSLESS

      public static final Mode LOSSLESS
      KubFly Lossless: every record arrives; the application slows down to the outputs. The records not released to the outputs yet — in the lanes and in the window — hold at most a budget of bytes, the size of all the lanes; a writer waits while it is spent and goes on as the drain releases records ( sdk/pipeline/collector/core/lane/waited). A pipeline that moves on nothing for 10 s — the drain or the thread of an output stuck — loses the record or the batch and counts it, as ASYNC does: the application is never held forever.
  • Method Details

    • values

      public static Mode[] 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 Mode 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