Class StoringSubscriber.Event<T>
java.lang.Object
software.amazon.awssdk.utils.async.StoringSubscriber.Event<T>
- Enclosing class:
StoringSubscriber<T>
An event stored for later retrieval by this subscriber.
Stored events are one of the follow type()
s:
VALUE
- A value received byStoringSubscriber.onNext(Object)
, available viavalue()
.COMPLETE
- IndicatingStoringSubscriber.onComplete()
was called.ERROR
- IndicatingStoringSubscriber.onError(Throwable)
was called. The exception is available viaruntimeError()
EMPTY
- Indicating that no events remain in the queue (but more from upstream may be given later).
-
Method Summary
Modifier and TypeMethodDescriptionThe error stored in thisERROR
type.type()
Retrieve theStoringSubscriber.EventType
of this event.value()
The value stored in thisVALUE
type.
-
Method Details
-
type
Retrieve theStoringSubscriber.EventType
of this event. -
value
The value stored in thisVALUE
type. Null for all other event types. -
runtimeError
The error stored in thisERROR
type. Null for all other event types. If a checked exception was received viaStoringSubscriber.onError(Throwable)
, this will return aRuntimeException
with the checked exception as its cause.
-