Class OperatorGroupBy.GroupBySubscriber<T,​K,​V>

    • Field Detail

      • keySelector

        final Func1<? super T,​? extends K> keySelector
      • valueSelector

        final Func1<? super T,​? extends V> valueSelector
      • bufferSize

        final int bufferSize
      • delayError

        final boolean delayError
      • evictedKeys

        final java.util.Queue<K> evictedKeys
      • NULL_KEY

        static final java.lang.Object NULL_KEY
      • cancelled

        final java.util.concurrent.atomic.AtomicBoolean cancelled
      • requested

        final java.util.concurrent.atomic.AtomicLong requested
      • groupCount

        final java.util.concurrent.atomic.AtomicInteger groupCount
      • error

        java.lang.Throwable error
      • done

        volatile boolean done
      • wip

        final java.util.concurrent.atomic.AtomicInteger wip
    • Constructor Detail

      • GroupBySubscriber

        public GroupBySubscriber​(Subscriber<? super GroupedObservable<K,​V>> actual,
                                 Func1<? super T,​? extends K> keySelector,
                                 Func1<? super T,​? extends V> valueSelector,
                                 int bufferSize,
                                 boolean delayError,
                                 Func1<Action1<K>,​java.util.Map<K,​java.lang.Object>> mapFactory)
    • Method Detail

      • setProducer

        public void setProducer​(Producer s)
        Description copied from class: Subscriber
        If other subscriber is set (by calling constructor Subscriber(Subscriber) or Subscriber(Subscriber, boolean)) then this method calls setProducer on the other subscriber. If the other subscriber is not set and no requests have been made to this subscriber then p.request(Long.MAX_VALUE) is called. If the other subscriber is not set and some requests have been made to this subscriber then p.request(n) is called where n is the accumulated requests to this subscriber.
        Overrides:
        setProducer in class Subscriber<T>
        Parameters:
        s - producer to be used by this subscriber or the other subscriber (or recursively its other subscriber) to make requests from
      • onError

        public void onError​(java.lang.Throwable t)
        Description copied from interface: Observer
        Notifies the Observer that the Observable has experienced an error condition.

        If the Observable calls this method, it will not thereafter call Observer.onNext(T) or Observer.onCompleted().

        Parameters:
        t - the exception encountered by the Observable
      • requestMore

        public void requestMore​(long n)
      • cancel

        public void cancel()
      • cancel

        public void cancel​(K key)
      • drain

        void drain()
      • checkTerminated

        boolean checkTerminated​(boolean d,
                                boolean empty,
                                Subscriber<? super GroupedObservable<K,​V>> a,
                                java.util.Queue<?> q)