Interface RQueueRx<V>

    • Method Detail

      • peek

        io.reactivex.rxjava3.core.Maybe<V> peek()
        Retrieves the head of this queue in async mode.
        Returns:
        the head of this queue, or null
      • poll

        io.reactivex.rxjava3.core.Maybe<V> poll()
        Retrieves and removes the head of this queue in async mode.
        Returns:
        the head of this queue, or null
      • poll

        io.reactivex.rxjava3.core.Single<List<V>> poll(int limit)
        Retrieves and removes the head elements of this queue. Elements amount limited by limit param.
        Returns:
        list of head elements
      • offer

        io.reactivex.rxjava3.core.Single<Boolean> offer(V e)
        Inserts the specified element into this queue.
        Parameters:
        e - the element to add
        Returns:
        true if successful, or false
        Throws:
        ClassCastException - if the class of the specified element prevents it from being added to this queue
        NullPointerException - if the specified element is null
      • pollLastAndOfferFirstTo

        io.reactivex.rxjava3.core.Maybe<V> pollLastAndOfferFirstTo(String queueName)
        Retrieves and removes last available tail element of this queue queue and adds it at the head of queueName.
        Parameters:
        queueName - - names of destination queue
        Returns:
        the tail of this queue, or null if the specified waiting time elapses before an element is available
      • readAll

        io.reactivex.rxjava3.core.Single<List<V>> readAll()
        Returns all queue elements at once
        Returns:
        elements