@Internal public enum StopMode extends Enum<StopMode>
DRAIN
means the job is
stopping either with a stop-with-savepoint --drain or due to consuming all records in the source.
A drained pipeline should call StreamOperator#finish()
on all operators.Modifier and Type | Method and Description |
---|---|
static StopMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StopMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StopMode DRAIN
public static final StopMode NO_DRAIN
public static StopMode[] values()
for (StopMode c : StopMode.values()) System.out.println(c);
public static StopMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.