Top Description Fields Constructors Methods
rx.internal.operators

public abstract Class DeferredScalarSubscriberSafe<T, R>

extends DeferredScalarSubscriber<T, R>
Class Inheritance
Known Direct Subclasses
rx.internal.operators.OnSubscribeCollect.CollectSubscriber, rx.internal.operators.OnSubscribeToMap.ToMapSubscriber, rx.internal.operators.OnSubscribeToMultimap.ToMultimapSubscriber
Type Parameters
<T>
source value type
<R>
result value type
Imports
rx.Subscriber, rx.plugins.RxJavaHooks

Supplements DeferredScalarSubscriber with defensive behaviour that ensures no emissions occur after a terminal event. If onError is called more than once then errors after the first are reported to RxJavaHooks.onError.

Field Summary

Modifier and TypeField and Description
protected boolean
Inherited from rx.internal.operators.DeferredScalarSubscriber:
actualHAS_REQUEST_HAS_VALUEHAS_REQUEST_NO_VALUEhasValueNO_REQUEST_HAS_VALUENO_REQUEST_NO_VALUEstatevalue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Overrides rx.internal.operators.DeferredScalarSubscriber.onCompleted.

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
ex
)

Overrides rx.internal.operators.DeferredScalarSubscriber.onError.

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
Inherited from rx.internal.operators.DeferredScalarSubscriber:
completecompletedownstreamRequestsetProducersetupDownstreamsubscribeTo

Field Detail

doneback to summary
protected boolean done

Constructor Detail

DeferredScalarSubscriberSafeback to summary
public DeferredScalarSubscriberSafe(Subscriber<? super R> actual)

Method Detail

onCompletedback to summary
public void onCompleted()

Overrides rx.internal.operators.DeferredScalarSubscriber.onCompleted.

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onErrorback to summary
public void onError(Throwable ex)

Overrides rx.internal.operators.DeferredScalarSubscriber.onError.

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
ex:Throwable

the exception encountered by the Observable

Annotations
@Override