Package rx.internal.operators
Class OnSubscribeUsing.DisposeAction<Resource>
java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
rx.internal.operators.OnSubscribeUsing.DisposeAction<Resource>
- All Implemented Interfaces:
Serializable,Action,Action0,Function,Subscription
- Enclosing class:
OnSubscribeUsing<T,Resource>
static final class OnSubscribeUsing.DisposeAction<Resource>
extends AtomicBoolean
implements Action0, Subscription
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcall()booleanIndicates whether thisSubscriptionis currently unsubscribed.voidStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.Methods inherited from class java.util.concurrent.atomic.AtomicBoolean
compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndSet, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
dispose
-
resource
-
-
Constructor Details
-
DisposeAction
-
-
Method Details
-
call
public void call() -
isUnsubscribed
public boolean isUnsubscribed()Description copied from interface:SubscriptionIndicates whether thisSubscriptionis currently unsubscribed.- Specified by:
isUnsubscribedin interfaceSubscription- Returns:
trueif thisSubscriptionis currently unsubscribed,falseotherwise
-
unsubscribe
public void unsubscribe()Description copied from interface:SubscriptionStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.This allows unregistering an
Subscriberbefore it has finished receiving all events (i.e. before onCompleted is called).- Specified by:
unsubscribein interfaceSubscription
-