Interface RBlockingDequeRx<V>

    • Method Detail

      • pollFirstFromAny

        io.reactivex.Flowable<V> pollFirstFromAny​(long timeout,
                                                  TimeUnit unit,
                                                  String... queueNames)
        Retrieves and removes first available head element of any queue in reactive mode, waiting up to the specified wait time if necessary for an element to become available in any of defined queues including queue own.
        Parameters:
        queueNames - - names of queue
        timeout - how long to wait before giving up, in units of unit
        unit - a TimeUnit determining how to interpret the timeout parameter
        Returns:
        the head of this queue, or null if the specified waiting time elapses before an element is available
      • pollLastFromAny

        io.reactivex.Flowable<V> pollLastFromAny​(long timeout,
                                                 TimeUnit unit,
                                                 String... queueNames)
        Retrieves and removes first available tail element of any queue in reactive mode, waiting up to the specified wait time if necessary for an element to become available in any of defined queues including queue own.
        Parameters:
        queueNames - - names of queue
        timeout - how long to wait before giving up, in units of unit
        unit - a TimeUnit determining how to interpret the timeout parameter
        Returns:
        the head of this queue, or null if the specified waiting time elapses before an element is available
      • putFirst

        io.reactivex.Flowable<Void> putFirst​(V e)
        Adds value to the head of queue.
        Parameters:
        e - value
        Returns:
        void
      • putLast

        io.reactivex.Flowable<Void> putLast​(V e)
        Adds value to the tail of queue.
        Parameters:
        e - value
        Returns:
        void
      • pollLast

        io.reactivex.Flowable<V> pollLast​(long timeout,
                                          TimeUnit unit)
        Retrieves and removes value at the tail of queue. If necessary waits up to defined timeout for an element become available.
        Parameters:
        timeout - how long to wait before giving up, in units of unit
        unit - a TimeUnit determining how to interpret the timeout parameter
        Returns:
        the element at the head of this queue, or null if the specified waiting time elapses before an element is available
      • takeLast

        io.reactivex.Flowable<V> takeLast()
        Retrieves and removes value at the tail of queue. Waits for an element become available.
        Returns:
        the tail element of this queue
      • pollFirst

        io.reactivex.Flowable<V> pollFirst​(long timeout,
                                           TimeUnit unit)
        Retrieves and removes value at the head of queue. If necessary waits up to defined timeout for an element become available.
        Parameters:
        timeout - how long to wait before giving up, in units of unit
        unit - a TimeUnit determining how to interpret the timeout parameter
        Returns:
        the element at the tail of this queue, or null if the specified waiting time elapses before an element is available
      • takeFirst

        io.reactivex.Flowable<V> takeFirst()
        Retrieves and removes value at the head of queue. Waits for an element become available.
        Returns:
        the head element of this queue
      • takeFirstElements

        io.reactivex.Flowable<V> takeFirstElements()
        Retrieves and removes continues stream of elements from the head of this queue. Waits for next element become available.
        Returns:
        stream of head elements
      • takeLastElements

        io.reactivex.Flowable<V> takeLastElements()
        Retrieves and removes continues stream of elements from the tail of this queue. Waits for next element become available.
        Returns:
        stream of tail elements