Signal (serializable and immutable).
Use Signal factory methods to create an instance.
Associated Context are not serialized.
| Modifier and Type | Field and Description |
|---|---|
| private final transient ContextView | |
| private static final Signal | |
| private static final long | |
| private final transient Subscription | |
| private final Throwable | |
| private final SignalType | |
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv | ImmutableSignal(ContextView contextView, SignalType type, T value, Throwable e, Subscription subscription)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public T | get()
Implements reactor. |
| public ContextView | getContextView()
Implements reactor. ContextView that is accessible by the time this Signal was
emitted.
|
| public Subscription | getSubscription()
Implements reactor. |
| public Throwable | getThrowable()
Implements reactor. |
| public SignalType | getType()
Implements reactor. SignalType#ON_SUBSCRIBE,
SignalType#ON_NEXT, SignalType#ON_ERROR, or
SignalType#ON_COMPLETE
|
| public int | |
| pack-priv static <U> Signal | Returns: a singleton signal to signify onComplete. As Signal is now associated withContext, prefer using per-subscription instances.
This instance is used when context doesn't matter.
|
| public String |
| contextView | back to summary |
|---|---|
| private final transient ContextView contextView | |
| ON_COMPLETE | back to summary |
|---|---|
| private static final Signal<?> ON_COMPLETE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| subscription | back to summary |
|---|---|
| private final transient Subscription subscription | |
| throwable | back to summary |
|---|---|
| private final Throwable throwable | |
| type | back to summary |
|---|---|
| private final SignalType type | |
| value | back to summary |
|---|---|
| private final T value | |
| ImmutableSignal | back to summary |
|---|---|
| pack-priv ImmutableSignal(ContextView contextView, SignalType type, T value, Throwable e, Subscription subscription) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public T get() Implements reactor. Doc from reactor. Retrieves the item associated with this (onNext) signal. | |
| getContextView | back to summary |
|---|---|
| public ContextView getContextView() Implements reactor. Doc from reactor. Return the readonly
| |
| getSubscription | back to summary |
|---|---|
| public Subscription getSubscription() Implements reactor. Doc from reactor. Read the subscription associated with this (onSubscribe) signal.
| |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Implements reactor. Doc from reactor. Read the error associated with this (onError) signal. | |
| getType | back to summary |
|---|---|
| public SignalType getType() Implements reactor. Doc from reactor. Read the type of this signal:
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| onComplete | back to summary |
|---|---|
pack-priv static <U> Signal
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |