Class ConcurrentBuffer<E>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<E> drain()  
      java.util.List<E> flush​(int limit)  
      boolean isEmpty()  
      int size()  
      void store​(E element)  
      void storeAll​(java.util.Collection<E> elements)  
      • Methods inherited from class java.lang.Object

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

      • ConcurrentBuffer

        public ConcurrentBuffer()
    • Method Detail

      • store

        public void store​(E element)
        Specified by:
        store in interface Buffer<E>
      • storeAll

        public void storeAll​(java.util.Collection<E> elements)
        Specified by:
        storeAll in interface Buffer<E>
      • flush

        public java.util.List<E> flush​(int limit)
      • drain

        public java.util.List<E> drain()
        Specified by:
        drain in interface Buffer<E>
      • size

        public int size()
        Specified by:
        size in interface Buffer<E>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Buffer<E>