T
- the input and output value typepublic final class SoloProcessor<T> extends Solo<T> implements Processor<T,T>
Calling the onNext multiple times has no effect. Calling the onComplete without calling the onNext will emit a NoSuchElementException to subscribers.
Modifier and Type | Method and Description |
---|---|
static <T> SoloProcessor<T> |
create()
Creates a fresh SoloProcessor instance.
|
Throwable |
getThrowable()
Returns the received onError Throwable if hasThrowable() is true, null otherwise.
|
T |
getValue()
Returns the received onNext value if hasValue() is true, null otherwise.
|
boolean |
hasSubscribers()
Returns true if this Processor has Subscribers.
|
boolean |
hasThrowable()
Returns true if this SoloProcessor received an onError Throwable.
|
boolean |
hasValue()
Returns true if this SoloProcessor received an onNext value.
|
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(Subscription s) |
protected void |
subscribeActual(Subscriber<? super T> s)
Implement this method to react to a Subscriber subscribing to this Solo.
|
amb, ambArray, ambWith, andThen, andThen, blockingGet, blockingGet, blockingSubscribe, blockingSubscribe, blockingSubscribe, blockingSubscribe, cache, compose, concat, concat, concat, concatArray, concatArrayDelayError, concatDelayError, concatDelayError, concatDelayError, concatDelayError, concatWith, create, defer, delay, delay, delay, delaySubscription, delaySubscription, delaySubscription, doAfterNext, doAfterTerminate, doFinally, doOnCancel, doOnComplete, doOnError, doOnNext, doOnRequest, doOnSubscribe, error, error, filter, flatMap, flatMap, flatMapPublisher, fromCallable, fromFuture, fromFuture, fromPublisher, fromSingle, getOnAssemblyHandler, hide, ignoreElement, just, lift, map, mapError, merge, merge, merge, merge, mergeArray, mergeArray, mergeArrayDelayError, mergeArrayDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeWith, never, observeOn, onAssembly, onErrorResumeNext, onErrorResumeWith, onErrorReturnItem, repeat, repeat, repeat, repeatWhen, retry, retry, retry, retryWhen, setOnAssemblyHandler, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscribeWith, takeUntil, test, test, test, test, timeout, timeout, timeout, timeout, timeout, timeout, timer, timer, to, toFlowable, toFuture, toObservable, toSingle, unsubscribeOn, using, using, zip, zipArray, zipWith
public static <T> SoloProcessor<T> create()
T
- the input and output value typeprotected void subscribeActual(Subscriber<? super T> s)
Solo
subscribeActual
in class Solo<T>
s
- the downstream Subscriber, never nullpublic void onSubscribe(Subscription s)
onSubscribe
in interface Subscriber<T>
public void onNext(T t)
onNext
in interface Subscriber<T>
public void onError(Throwable t)
onError
in interface Subscriber<T>
public void onComplete()
onComplete
in interface Subscriber<T>
public boolean hasSubscribers()
public boolean hasValue()
public T getValue()
public boolean hasThrowable()
public Throwable getThrowable()