Class FastRemovalQueue<E>

java.lang.Object
org.redisson.misc.FastRemovalQueue<E>
Type Parameters:
E - element type
All Implemented Interfaces:
Iterable<E>

public final class FastRemovalQueue<E> extends Object implements Iterable<E>
Thread-safe queue with O(1) complexity for removal operation.
Author:
Nikita Koksharov
  • Constructor Details

    • FastRemovalQueue

      public FastRemovalQueue()
  • Method Details

    • add

      public void add(E element)
    • moveToTail

      public boolean moveToTail(E element)
    • remove

      public boolean remove(E element)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • poll

      public E poll()
    • clear

      public void clear()
    • iterator

      public Iterator<E> iterator()
      Specified by:
      iterator in interface Iterable<E>