| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile CompositeSubscription | |
| pack-priv final ReentrantLock | lock
Use this lock for every subscription and disconnect action. |
| private final ConnectableObservable | |
| pack-priv final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public | OnSubscribeRefCount(ConnectableObservable<? extends T>
observable to apply ref count to source)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private Subscription | |
| pack-priv void | |
| private Action1 |
| baseSubscription | back to summary |
|---|---|
| pack-priv volatile CompositeSubscription baseSubscription | |
| lock | back to summary |
|---|---|
| pack-priv final ReentrantLock lock Use this lock for every subscription and disconnect action. | |
| source | back to summary |
|---|---|
| private final ConnectableObservable<? extends T> source | |
| subscriptionCount | back to summary |
|---|---|
| pack-priv final AtomicInteger subscriptionCount | |
| OnSubscribeRefCount | back to summary |
|---|---|
| public OnSubscribeRefCount(ConnectableObservable<? extends T> source) Constructor.
| |
| call | back to summary |
|---|---|
| public void call(final Subscriber<? super T> subscriber) Implements rx.
| |
| disconnect | back to summary |
|---|---|
| private Subscription disconnect(final CompositeSubscription current) | |
| doSubscribe | back to summary |
|---|---|
| pack-priv void doSubscribe(final Subscriber<? super T> subscriber, final CompositeSubscription currentBase) | |
| onSubscribe | back to summary |
|---|---|
| private Action1 | |