Class SingleZipArray.ZipCoordinator<T,​R>

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the resource, the operation should be idempotent.
      (package private) void disposeExcept​(int index)  
      (package private) void innerError​(java.lang.Throwable ex, int index)  
      (package private) void innerSuccess​(T value, int index)  
      boolean isDisposed()
      Returns true if this resource has been disposed.
      • 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
    • Constructor Detail

      • ZipCoordinator

        ZipCoordinator​(SingleObserver<? super R> observer,
                       int n,
                       Function<? super java.lang.Object[],​? extends R> zipper)
    • Method Detail

      • 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
      • dispose

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

        void innerSuccess​(T value,
                          int index)
      • disposeExcept

        void disposeExcept​(int index)
      • innerError

        void innerError​(java.lang.Throwable ex,
                        int index)