Observer and an Observable at the same time, allowing
multicasting events from a single source to multiple child Observers.
All methods except the onSubscribe(io., onNext(Object),
onError(Throwable) and onComplete() are thread-safe.
Use toSerialized() to make these methods thread-safe as well.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Throwable | Returns: the error that caused the Subject to terminate or null if the Subject hasn't terminated yetReturns the error that caused the Subject to terminate or null if the Subject hasn't terminated yet. |
| public abstract boolean | Returns: true if the subject has reached a terminal state through a complete eventReturns true if the subject has reached a terminal state through a complete event. |
| public abstract boolean | Returns: true if the subject has any ObserversReturns true if the subject has any Observers. |
| public abstract boolean | Returns: true if the subject has reached a terminal state through an error eventReturns true if the subject has reached a terminal state through an error event. |
| public final Subject | Returns: the wrapped and serialized subjectWraps this Subject and serializes the calls to the onSubscribe, onNext, onError and onComplete methods, making them thread-safe. |
| Subject | back to summary |
|---|---|
| public Subject() | |
| getThrowable | back to summary |
|---|---|
| public abstract Throwable getThrowable() Returns the error that caused the Subject to terminate or null if the Subject hasn't terminated yet. The method is thread-safe. | |
| hasComplete | back to summary |
|---|---|
| public abstract boolean hasComplete() Returns true if the subject has reached a terminal state through a complete event. The method is thread-safe.
| |
| hasObservers | back to summary |
|---|---|
| public abstract boolean hasObservers() Returns true if the subject has any Observers. The method is thread-safe.
| |
| hasThrowable | back to summary |
|---|---|
| public abstract boolean hasThrowable() Returns true if the subject has reached a terminal state through an error event. The method is thread-safe.
| |
| toSerialized | back to summary |
|---|---|
| public final Subject Wraps this Subject and serializes the calls to the onSubscribe, onNext, onError and onComplete methods, making them thread-safe. The method is thread-safe. | |