public static enum BlockingSink.Emission extends Enum<BlockingSink.Emission>
BlockingSink.emit(E)
.
isOk()
is the only successful signal, the other define the emission failure cause.Enum Constant and Description |
---|
BACKPRESSURED |
CANCELLED |
FAILED |
OK |
Modifier and Type | Method and Description |
---|---|
boolean |
isBackpressured() |
boolean |
isCancelled() |
boolean |
isFailed() |
boolean |
isOk() |
static BlockingSink.Emission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockingSink.Emission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockingSink.Emission FAILED
public static final BlockingSink.Emission BACKPRESSURED
public static final BlockingSink.Emission OK
public static final BlockingSink.Emission CANCELLED
public static BlockingSink.Emission[] values()
for (BlockingSink.Emission c : BlockingSink.Emission.values()) System.out.println(c);
public static BlockingSink.Emission 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 nullpublic boolean isBackpressured()
public boolean isCancelled()
public boolean isFailed()
public boolean isOk()