Class AtomicQueue<T>


  • public class AtomicQueue<T>
    extends java.lang.Object
    A queue that allows one thread to call put(Object) and another thread to call poll(). Multiple threads must not call these methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      AtomicQueue​(int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T poll()  
      boolean put​(T value)  
      • Methods inherited from class java.lang.Object

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

      • AtomicQueue

        public AtomicQueue​(int capacity)
    • Method Detail

      • put

        public boolean put​(@Null
                           T value)
      • poll

        @Null
        public T poll()