Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class SingleTakeUntilCompletable<T>

extends Object
implements Single.OnSubscribe<T>
Class Inheritance
All Implemented Interfaces
rx.Single.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function
Type Parameters
<T>
the value type
Imports
java.util.concurrent.CancellationException, java.util.concurrent.atomic.AtomicBoolean, rx.*, .Single.OnSubscribe, rx.plugins.RxJavaHooks

Relay the source signals if the other doesn't terminate before.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Completable
pack-priv final Single.OnSubscribe<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

otherback to summary
pack-priv final Completable other
sourceback to summary
pack-priv final Single.OnSubscribe<T> source

Constructor Detail

SingleTakeUntilCompletableback to summary
public SingleTakeUntilCompletable(Single.OnSubscribe<T> source, Completable other)

Method Detail

callback to summary
public void call(SingleSubscriber<? super T> t)

Implements rx.functions.Action1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class SingleTakeUntilCompletable.TakeUntilSourceSubscriber<T>

extends SingleSubscriber<T>
implements CompletableSubscriber
Class Inheritance
All Implemented Interfaces
rx.CompletableSubscriber

Field Summary

Modifier and TypeField and Description
pack-priv final SingleSubscriber<? super T>
pack-priv final AtomicBoolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Implements rx.CompletableSubscriber.onCompleted.

Called once the deferred computation completes normally.
public void
onError(Throwable
the exception, not null.
error
)

Implements abstract rx.SingleSubscriber.onError.

Implements rx.CompletableSubscriber.onError.

Called once if the deferred computation 'throws' an exception.
public void
onSubscribe(Subscription
the Subscription instance to call dispose on for cancellation, not null
d
)

Implements rx.CompletableSubscriber.onSubscribe.

Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.
public void
onSuccess(T
the item emitted by the Single
value
)

Implements abstract rx.SingleSubscriber.onSuccess.

Notifies the SingleSubscriber with a single item and that the Single has finished sending push-based notifications.
Inherited from rx.SingleSubscriber:
addisUnsubscribedunsubscribe

Field Detail

actualback to summary
pack-priv final SingleSubscriber<? super T> actual
onceback to summary
pack-priv final AtomicBoolean once

Constructor Detail

TakeUntilSourceSubscriberback to summary
pack-priv TakeUntilSourceSubscriber(SingleSubscriber<? super T> actual)

Method Detail

onCompletedback to summary
public void onCompleted()

Implements rx.CompletableSubscriber.onCompleted.

Doc from rx.CompletableSubscriber.onCompleted.

Called once the deferred computation completes normally.

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

Implements abstract rx.SingleSubscriber.onError.

Implements rx.CompletableSubscriber.onError.

Doc from rx.CompletableSubscriber.onError.

Called once if the deferred computation 'throws' an exception.

Parameters
error:Throwable

the exception, not null.

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Subscription d)

Implements rx.CompletableSubscriber.onSubscribe.

Doc from rx.CompletableSubscriber.onSubscribe.

Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.

Parameters
d:Subscription

the Subscription instance to call dispose on for cancellation, not null

Annotations
@Override
onSuccessback to summary
public void onSuccess(T value)

Implements abstract rx.SingleSubscriber.onSuccess.

Doc from rx.SingleSubscriber.onSuccess.

Notifies the SingleSubscriber with a single item and that the Single has finished sending push-based notifications.

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

Parameters
value:T

the item emitted by the Single

Annotations
@Override