code: public synchronized Page poll()
      {
          if (settableFuture != null) {
              settableFuture.set(null);
              settableFuture = null;
          }
          return pages.poll();
      }
docs: Return a page from the buffer, or null if none exists