public final class HalfSerializer extends Object
onNext is guaranteed to be
called from a single thread but onError or onComplete may be called from any threads.| Modifier and Type | Method and Description |
|---|---|
static void |
onComplete(org.reactivestreams.Subscriber<?> subscriber,
AtomicInteger wip,
AtomicReference<Throwable> container)
Propagates the completion event or failure events (if a failure is stored in the container).
|
static void |
onError(org.reactivestreams.Subscriber<?> subscriber,
Throwable failure,
AtomicInteger wip,
AtomicReference<Throwable> container)
Propagates the given failure if the downstream if possible (no work in progress) or accumulate it to the given
failure container to be propagated by a concurrent
onNext call. |
static <T> void |
onNext(org.reactivestreams.Subscriber<? super T> subscriber,
T item,
AtomicInteger wip,
AtomicReference<Throwable> container)
Propagates the given item if possible and terminates if there was a completion or failure event happening during
the propagation.
|
public static <T> void onNext(org.reactivestreams.Subscriber<? super T> subscriber,
T item,
AtomicInteger wip,
AtomicReference<Throwable> container)
T - the type of the itemsubscriber - the downstream subscriberitem - the item to propagate downstreamwip - the serialization work-in-progress countercontainer - the failure containerpublic static void onError(org.reactivestreams.Subscriber<?> subscriber,
Throwable failure,
AtomicInteger wip,
AtomicReference<Throwable> container)
onNext call.subscriber - the downstream subscriberfailure - the failure event to propagatewip - the serialization work-in-progress countercontainer - the failure containerpublic static void onComplete(org.reactivestreams.Subscriber<?> subscriber,
AtomicInteger wip,
AtomicReference<Throwable> container)
onNext will.subscriber - the downstream subscriberwip - the serialization work-in-progress countercontainer - the failure containerCopyright © 2019–2020 SmallRye. All rights reserved.