Enum Class Mode
- All Implemented Interfaces:
Serializable, Comparable<Mode>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
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, asASYNCdoes: the application is never held forever.
-
-
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
-