Class PageBuffer


  • @ThreadSafe
    public class PageBuffer
    extends Object
    • Constructor Detail

      • PageBuffer

        public PageBuffer​(int maxBufferedPages)
    • Method Detail

      • isFull

        public boolean isFull()
      • add

        public com.google.common.util.concurrent.ListenableFuture<?> add​(Page page)
        Adds a page to the buffer. Returns a ListenableFuture that is marked as done when the next page can be added.
      • poll

        public Page poll()
        Return a page from the buffer, or null if none exists