Class StoringSubscriber.Event<T>
- java.lang.Object
-
- software.amazon.awssdk.utils.async.StoringSubscriber.Event<T>
-
- Enclosing class:
- StoringSubscriber<T>
public static final class StoringSubscriber.Event<T> extends Object
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeExceptionruntimeError()The error stored in thisERRORtype.StoringSubscriber.EventTypetype()Retrieve theStoringSubscriber.EventTypeof this event.Tvalue()The value stored in thisVALUEtype.
-
-
-
Method Detail
-
type
public StoringSubscriber.EventType type()
Retrieve theStoringSubscriber.EventTypeof this event.
-
value
public T value()
The value stored in thisVALUEtype. Null for all other event types.
-
runtimeError
public RuntimeException runtimeError()
The error stored in thisERRORtype. Null for all other event types. If a checked exception was received viaStoringSubscriber.onError(Throwable), this will return aRuntimeExceptionwith the checked exception as its cause.
-
-