public MetricsSource getMetrics() {
    return metrics;
  }
Remove all the elements from the queue corresponding to walGroupId
@param walGroupId walGroupId
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceLogQueue.java