public class UniCache<I> extends UniOperator<I,I> implements UniSubscriber<I>
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable failure)
Called if the computation of the item by the subscriber
Uni failed. |
void |
onItem(I item)
Event handler called once the item has been computed by the subscribed
Uni. |
void |
onSubscribe(UniSubscription subscription)
Event handler called once the subscribed
Uni has taken into account the subscription. |
protected void |
subscribing(UniSerializedSubscriber<? super I> subscriber) |
upstreamand, and, await, cache, convert, emitOn, ifNoItem, on, onFailure, onFailure, onFailure, onItem, onItemOrFailure, onSubscribe, onTermination, or, repeat, runSubscriptionOn, subscribe, subscribe, toMulticlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchain, combine, createFrom, eventually, eventually, flatMap, invoke, invokeUni, map, stage, subscribeAsCompletionStage, subscribeOn, then, thenprotected void subscribing(UniSerializedSubscriber<? super I> subscriber)
subscribing in class AbstractUni<I>public void onSubscribe(UniSubscription subscription)
UniSubscriberUni has taken into account the subscription. The Uni
have triggered the computation of the item.
IMPORTANT: UniSubscriber.onItem(Object) and UniSubscriber.onFailure(Throwable) would not be called
before the invocation of this method.
Uni.runSubscriptionOn(Executor) has been
calledUniSubscriber.onItem(Object) and
UniSubscriber.onFailure(Throwable) won't be calledonSubscribe in interface UniSubscriber<I>subscription - the subscription allowing to cancel the computation.public void onItem(I item)
UniSubscriberUni.
IMPORTANT: this method will be only called once per subscription. If
UniSubscriber.onFailure(Throwable) is called, this method won't be called.
Uni.emitOn(java.util.concurrent.Executor) has been calledonItem in interface UniSubscriber<I>item - the item, may be null.public void onFailure(Throwable failure)
UniSubscriberUni failed.
IMPORTANT: this method will be only called once per subscription. If
UniSubscriber.onItem(Object) is called, this method won't be called.
Uni.emitOn(java.util.concurrent.Executor) has been calledonFailure in interface UniSubscriber<I>failure - the failure, cannot be null.Copyright © 2019–2020 SmallRye. All rights reserved.