Package rx.internal.operators
Class CachedObservable.CachedSubscribe<T>
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicBoolean
-
- rx.internal.operators.CachedObservable.CachedSubscribe<T>
-
- Type Parameters:
T
- the value type emitted
- All Implemented Interfaces:
java.io.Serializable
,Action
,Action1<Subscriber<? super T>>
,Function
,Observable.OnSubscribe<T>
- Enclosing class:
- CachedObservable<T>
static final class CachedObservable.CachedSubscribe<T> extends java.util.concurrent.atomic.AtomicBoolean implements Observable.OnSubscribe<T>
Manages the subscription of child subscribers by setting up a replay producer and performs auto-connection of the very first subscription.
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
(package private) CachedObservable.CacheState<T>
state
-
Constructor Summary
Constructors Constructor Description CachedSubscribe(CachedObservable.CacheState<T> state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(Subscriber<? super T> t)
-
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
state
final CachedObservable.CacheState<T> state
-
-
Constructor Detail
-
CachedSubscribe
public CachedSubscribe(CachedObservable.CacheState<T> state)
-
-
Method Detail
-
call
public void call(Subscriber<? super T> t)
-
-