Class ConcurrentDirectDeque<E>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Deque<E>, java.util.Queue<E>
    Direct Known Subclasses:
    FastConcurrentDirectDeque, PortableConcurrentDirectDeque

    public abstract class ConcurrentDirectDeque<E>
    extends java.util.AbstractCollection<E>
    implements java.util.Deque<E>, java.io.Serializable
    A concurrent deque that allows direct item removal without traversal.
    Author:
    Jason T. Greene
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static <K> ConcurrentDirectDeque<K> newInstance()  
      abstract java.lang.Object offerFirstAndReturnToken​(E e)  
      abstract java.lang.Object offerLastAndReturnToken​(E e)  
      abstract void removeToken​(java.lang.Object token)  
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.util.Deque

        add, addAll, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • ConcurrentDirectDeque

        public ConcurrentDirectDeque()
    • Method Detail

      • offerFirstAndReturnToken

        public abstract java.lang.Object offerFirstAndReturnToken​(E e)
      • offerLastAndReturnToken

        public abstract java.lang.Object offerLastAndReturnToken​(E e)
      • removeToken

        public abstract void removeToken​(java.lang.Object token)