Top Description Fields Constructors Methods
rx.internal.operators

public final Class OnSubscribeAutoConnect<T>

extends AtomicInteger
implements Observable.OnSubscribe<T>
Class Inheritance
All Implemented Interfaces
rx.Observable.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function
Annotations
@SuppressWarnings:serial
Type Parameters
<T>
the value type of the chain
Imports
java.util.concurrent.atomic.AtomicInteger, rx.*, .Observable.OnSubscribe, rx.functions.Action1, rx.observables.ConnectableObservable, rx.observers.Subscribers

Wraps a ConnectableObservable and calls its connect() method once the specified number of Subscribers have subscribed.

Field Summary

Modifier and TypeField and Description
pack-priv final Action1<? super Subscription>
pack-priv final int
pack-priv final ConnectableObservable<? extends T>

Constructor Summary

AccessConstructor and Description
public
OnSubscribeAutoConnect(ConnectableObservable<? extends T> source, int numberOfSubscribers, Action1<? super Subscription> connection)

Method Summary

Modifier and TypeMethod and Description
public void
call(Subscriber<? super T> child)

Implements rx.functions.Action1.call.

Inherited from java.util.concurrent.atomic.AtomicInteger:
accumulateAndGetaddAndGetcompareAndExchangecompareAndExchangeAcquirecompareAndExchangeReleasecompareAndSetdecrementAndGetdoubleValuefloatValuegetgetAcquiregetAndAccumulategetAndAddgetAndDecrementgetAndIncrementgetAndSetgetAndUpdategetOpaquegetPlainincrementAndGetintValuelazySetlongValuesetsetOpaquesetPlainsetReleasetoStringupdateAndGetweakCompareAndSetweakCompareAndSetAcquireweakCompareAndSetPlainweakCompareAndSetReleaseweakCompareAndSetVolatile

Field Detail

connectionback to summary
pack-priv final Action1<? super Subscription> connection
numberOfSubscribersback to summary
pack-priv final int numberOfSubscribers
sourceback to summary
pack-priv final ConnectableObservable<? extends T> source

Constructor Detail

OnSubscribeAutoConnectback to summary
public OnSubscribeAutoConnect(ConnectableObservable<? extends T> source, int numberOfSubscribers, Action1<? super Subscription> connection)

Method Detail

callback to summary
public void call(Subscriber<? super T> child)

Implements rx.functions.Action1.call.

Annotations
@Override