Class ObservableZip.ZipCoordinator<T,​R>

  • All Implemented Interfaces:
    Disposable, java.io.Serializable
    Enclosing class:
    ObservableZip<T,​R>

    static final class ObservableZip.ZipCoordinator<T,​R>
    extends java.util.concurrent.atomic.AtomicInteger
    implements Disposable
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipCoordinator​(Observer<? super R> actual, Function<? super java.lang.Object[],​? extends R> zipper, int count, boolean delayError)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void cancel()  
      (package private) void cancelSources()  
      (package private) boolean checkTerminated​(boolean d, boolean empty, Observer<? super R> a, boolean delayError, ObservableZip.ZipObserver<?,​?> source)  
      (package private) void clear()  
      void dispose()
      Dispose the resource, the operation should be idempotent.
      void drain()  
      boolean isDisposed()
      Returns true if this resource has been disposed.
      void subscribe​(ObservableSource<? extends T>[] sources, int bufferSize)  
      • Methods inherited from class java.util.concurrent.atomic.AtomicInteger

        accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • downstream

        final Observer<? super R> downstream
      • zipper

        final Function<? super java.lang.Object[],​? extends R> zipper
      • row

        final T[] row
      • delayError

        final boolean delayError
      • cancelled

        volatile boolean cancelled
    • Constructor Detail

      • ZipCoordinator

        ZipCoordinator​(Observer<? super R> actual,
                       Function<? super java.lang.Object[],​? extends R> zipper,
                       int count,
                       boolean delayError)
    • Method Detail

      • subscribe

        public void subscribe​(ObservableSource<? extends T>[] sources,
                              int bufferSize)
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Dispose the resource, the operation should be idempotent.
        Specified by:
        dispose in interface Disposable
      • isDisposed

        public boolean isDisposed()
        Description copied from interface: Disposable
        Returns true if this resource has been disposed.
        Specified by:
        isDisposed in interface Disposable
        Returns:
        true if this resource has been disposed
      • cancel

        void cancel()
      • cancelSources

        void cancelSources()
      • clear

        void clear()
      • drain

        public void drain()