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 RuntimeException
runtimeError()
The error stored in thisERROR
type.StoringSubscriber.EventType
type()
Retrieve theStoringSubscriber.EventType
of this event.T
value()
The value stored in thisVALUE
type.
-
-
-
Method Detail
-
type
public StoringSubscriber.EventType type()
Retrieve theStoringSubscriber.EventType
of this event.
-
value
public T value()
The value stored in thisVALUE
type. Null for all other event types.
-
runtimeError
public RuntimeException 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.
-
-