public WALEntryBatch poll(long timeout) throws InterruptedException {
    return entryBatchQueue.poll(timeout, TimeUnit.MILLISECONDS);
  }
Retrieves the next batch of WAL entries from the queue, waiting up to the specified time for a
batch to become available
@return A batch of entries, along with the position in the log after reading the batch
@throws InterruptedException if interrupted while waiting
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceWALReader.java