Class SpmcLinkedArrayQueue<T>

  • Type Parameters:
    T - the item type to be queued
    All Implemented Interfaces:
    io.reactivex.rxjava3.internal.fuseable.SimplePlainQueue<T>, io.reactivex.rxjava3.internal.fuseable.SimpleQueue<T>

    public final class SpmcLinkedArrayQueue<T>
    extends java.lang.Object
    implements io.reactivex.rxjava3.internal.fuseable.SimplePlainQueue<T>
    A single-producer multiple-conumer queue implementation with array islands.
    Since:
    0.18.8
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean isEmpty()  
      boolean offer​(T value)  
      boolean offer​(T v1, T v2)  
      T poll()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpmcLinkedArrayQueue

        public SpmcLinkedArrayQueue​(int capacity)
    • Method Detail

      • offer

        public boolean offer​(T value)
        Specified by:
        offer in interface io.reactivex.rxjava3.internal.fuseable.SimpleQueue<T>
      • offer

        public boolean offer​(T v1,
                             T v2)
        Specified by:
        offer in interface io.reactivex.rxjava3.internal.fuseable.SimpleQueue<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface io.reactivex.rxjava3.internal.fuseable.SimpleQueue<T>
      • clear

        public void clear()
        Specified by:
        clear in interface io.reactivex.rxjava3.internal.fuseable.SimpleQueue<T>
      • poll

        public T poll()
        Specified by:
        poll in interface io.reactivex.rxjava3.internal.fuseable.SimplePlainQueue<T>
        Specified by:
        poll in interface io.reactivex.rxjava3.internal.fuseable.SimpleQueue<T>