public static enum Operator.Signal extends Enum<Operator.Signal>
It's named weird because... well, the author had a hard time coming up with a meaningful name. Suggestions for alternate names are welcome.
| Enum Constant and Description |
|---|
GO
Indicates that more data is welcome.
|
PAUSE
Inidcates that the downstream processing should pause its pushing of results and instead return a
continuation object that encapsulates whatever state is required to resume processing.
|
STOP
Indicates that the downstream processing need not do anything else.
|
| Modifier and Type | Method and Description |
|---|---|
static Operator.Signal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator.Signal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator.Signal STOP
Operator.Receiver.completed() before returning STOP. They should instead return STOP
and trust that the downstream code will call Operator.Receiver.completed(). This is because downstream code
*might* be pipelining computations to prepare the next set of data and if the Operator first calls
Operator.Receiver.completed() before communicating that no further results are needed, it delays the canceling
of the pipelined operations and effectively wastes CPU cycles.public static final Operator.Signal PAUSE
If an Operator has completed its processing already when this signal is received, instead of returning a
continuation object, it should call Operator.Receiver.completed() and return null.
public static final Operator.Signal GO
public static Operator.Signal[] values()
for (Operator.Signal c : Operator.Signal.values()) System.out.println(c);
public static Operator.Signal 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 © 2011–2023 The Apache Software Foundation. All rights reserved.