public static enum Signal.Type extends Enum<Signal.Type>
Enum Constant and Description |
---|
COMPLETE
Only happens once, a complete signal is used to confirm the successful end of the data sequence flowing in a
Stream . |
ERROR
Only happens once, a complete signal is used to confirm the error end of the data sequence flowing in a
Stream . |
NEXT
Can happen N times where N is a possibly unbounded number.
|
SUBSCRIBE
Only happens once, a subscribe signal is the handshake between a new subscriber and a producer.
|
Modifier and Type | Method and Description |
---|---|
static Signal.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Signal.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Signal.Type SUBSCRIBE
see Publisher.subscribe(org.reactivestreams.Subscriber)
public static final Signal.Type NEXT
public static final Signal.Type COMPLETE
Stream
. The signal releases batching operations such as Stream.buffer()
,
Stream.window()
or reactor.rx.Stream#reduce(reactor.fn.Function)
public static final Signal.Type ERROR
Stream
. However, the signal can be recovered using various operations such as .rx.Stream#recover
(Class)
or Stream.retry()
public static Signal.Type[] values()
for (Signal.Type c : Signal.Type.values()) System.out.println(c);
public static Signal.Type 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 © 2016. All rights reserved.