| Constructor and description |
|---|
MappingSubscriber(Flow.Subscriber<? super Object> downstream, Closure mapper)Creates a subscriber that maps upstream items before forwarding them. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
onComplete()Completes downstream once the upstream publisher completes. |
|
void |
onError(Throwable t)Forwards the terminal error unless this subscriber has already completed. |
|
void |
onNext(Object item)Maps the upstream item before emitting it downstream. |
|
void |
onSubscribe(Flow.Subscription s)Stores the upstream subscription and forwards it downstream unchanged. |
Completes downstream once the upstream publisher completes.
Forwards the terminal error unless this subscriber has already completed.
t - the terminal failureMaps the upstream item before emitting it downstream.
item - the upstream itemStores the upstream subscription and forwards it downstream unchanged.
s - the upstream subscriptionCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.