Class Channel<E>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable


    public class Channel<E>
    extends java.util.concurrent.LinkedBlockingQueue<E>
    implements java.io.Closeable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Channel​()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(E e)  
      void close​()  
      E take​()  
      • Methods inherited from class java.util.AbstractCollection

        containsAll, isEmpty
      • Methods inherited from class java.util.AbstractQueue

        addAll, element, remove
      • Methods inherited from interface java.util.Collection

        addAll, containsAll, equals, hashCode, isEmpty, parallelStream, stream
      • Methods inherited from class java.util.concurrent.LinkedBlockingQueue

        clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, 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.Queue

        element, remove
    • Constructor Detail

      • Channel

        public Channel​()
    • Method Detail

      • take

        public E take​()
               throws java.lang.InterruptedException
        Overrides:
        take in class java.util.concurrent.LinkedBlockingQueue<E>
        Throws:
        java.lang.InterruptedException
      • add

        public boolean add​(E e)
        Overrides:
        add in class java.util.AbstractQueue<E>
      • close

        public void close​()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable