boolean acquireWALEntryBufferQuota(WALEntryBatch walEntryBatch, Entry entry) {
    long entrySize = walEntryBatch.incrementUsedBufferSize(entry);
    return this.acquireBufferQuota(entrySize);
  }
Acquire the buffer quota for {@link Entry} which is added to {@link WALEntryBatch}.
@param entry the wal entry which is added to {@link WALEntryBatch} and should acquire buffer
             quota.
@return true if we should clear buffer and push all
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java