Class OperatorMulticast<T,R>

  • Type Parameters:
    T - the source value type
    R - the result value type


    public final class OperatorMulticast<T,R>
    extends ConnectableObservable<R>
    Shares a single subscription to a source through a Subject.
    • Constructor Detail

      • OperatorMulticast

        public OperatorMulticast(Observable<? extends T> source,
                                 Func0<? extends Subject<? super T,? extends R>> subjectFactory)
    • Method Detail

      • connect

        public void connect(Action1<? super Subscription> connection)
        Description copied from class: ConnectableObservable
        Instructs the ConnectableObservable to begin emitting the items from its underlying Observable to its Subscribers.
        Specified by:
        connect in class  ConnectableObservable<R>
        Parameters:
        connection - the action that receives the connection subscription before the subscription to source happens allowing the caller to synchronously disconnect a synchronous source