public static final class StoringSubscriber.Event<T> extends Object
Stored events are one of the follow type()s:
VALUE - A value received by StoringSubscriber.onNext(Object), available via value().COMPLETE - Indicating StoringSubscriber.onComplete() was called.ERROR - Indicating StoringSubscriber.onError(Throwable) was called. The exception is available via
runtimeError()EMPTY - Indicating that no events remain in the queue (but more from upstream may be given later).| Modifier and Type | Method and Description |
|---|---|
RuntimeException |
runtimeError()
The error stored in this
ERROR type. |
StoringSubscriber.EventType |
type()
Retrieve the
StoringSubscriber.EventType of this event. |
T |
value()
The value stored in this
VALUE type. |
public StoringSubscriber.EventType type()
StoringSubscriber.EventType of this event.public T value()
VALUE type. Null for all other event types.public RuntimeException runtimeError()
ERROR type. Null for all other event types. If a checked exception was received via
StoringSubscriber.onError(Throwable), this will return a RuntimeException with the checked exception as its cause.Copyright © 2023. All rights reserved.